Federer was and will always be a class above Djokovic.Djokovic was the king of claiming injuries or pulling out whenever losing earlier in his career - he doesn't seem to pull out so much anymore, but he's still always "injured" when losing the miraculously recovers and finds a way to win!
Federer however never pulled out during a match or during a grand slam tournament in his entire career - pretty rare.