Batman is smarter than him, he outsmarted Brainiac, who was a living supercomputer with twelfth-level intelligence, and access to all the information ever archived on at least two planets (Krypton and Earth).
Doctors Who's greatest arch-enemy is The Master, someone with a threat level of "being about as smart as the hero protagonist is".
There is just no contest between them.