Definitely not the same. Leon strength of schedule is much better. And that's not true about Edwards not beating any top 5 once he beat RDA, #4 at the time they fought.
Last 10 fights from both, before the belt (ranks accordingly the fight date):
Edwards:
Nate Diaz #NR
Belal Muhammad #13 (Leon was winning until the accident)
Rafael Dos Anjos #4
Gunnar Nelson #13
Donald Cerrone #11
Peter Sobotta #NR
Bryan Barberena #NR
Vicente Luque #NR
Albert Tumenov #14
Dominic Waters #NR
Makhachev:
Bobby Green #NR
Dan Hooker #6
Thiago Moisés #14
Drew Dober #NR
Davi Ramos #NR
Arman Tsarukyan #NR
Kajan Johnson #NR
Gleison Tibau #NR
Nik Lentz #NR
Chris Wade #NR
Edwards: one top 5, four top 15 and five non-ranked.
Makhachev: no top 5, one top 10, one top 15 and eight non-ranked.