Law was weaker than Doffy, but it was just a matter of time before he would surpass him. Just think about it: a proper 2 vs 2 (Law with awakening, with Dressrosa Luffy) would have ended with Doffy and Trebol defeat in like 5 minutes.
Doflamingo is a well rounded fighter, with awakened power but at the same time he's arrogant, that's why he could probably be crushed by many Yonkou Commanders.
Law was strong and now he's stronger, simply his bounty is for political reasons, as a fighter he's above a Yonkou Commander except for (maybe) Shiryu and Beckman, considered the former's status and curriculum, the latter's actions toward Kidd and reputation.
Conclusion: Law's defeat against Doffy isn't that talked about since it's normal in a Shonen to grow stronger arch by arch and defeat by defeat, and since also Luffy got defeated.