A democratic leader remains democratic throughout their term. W did his time and bowed out at the end of it. Another party stepped in peacefully afterward.
The only way Hitler could have gone out was in a pine box. That's the difference. He may have been democratically elected, but he wasn't a democratic leader.
If you are so inclined, one was had good intentions, but backfired badly while other is explicitly cruel.