This is not a Gandalf vs Smaug debate.
The question is more about whether, if presented with the opportunity, Gandalf would have been permitted (by the Valar) to fight Smaug without any limitations to his power?
I know that as a wizard, he is instructed to only be a guiding spirit and not unleash his full power. However, in Moria, he fights the Balrog using his abilities as a wizard in full.