I'd say the wither is the more dangerous of the two bosses.
Seriously, the dragon is a joke. Go in with an infinity bow and you've pretty much got it. The wither on the other hand... It destroys things, it causes the wither effect, there's the huge-ass explosion when it spawns, it becomes immune to arrows after half its health is gone...
https://mobdro.bio/ Need I say more?