Um, I don't see any argument here. Gandalf clearly was more powerful than Sauron since, through a well-developed strategy and the successful deployment of the forces at his disposal (sorry, subject to his guidance), he was able to bring about the defeat Sauron.
The proof of the power is in the beating.