My favorite is Bog king from Strange Magic - Has a song talking about how evil he is. But all he does is prevent the spread of dangerous mind control magic, and quarantine people under the effects of said magic. Yes he greatly annoys people doing so, but honestly? If I get hit by a love potion, please quarantine me.
Okay, but you can’t say “he killed him” when he could be brought back by anyone. Especially since even the museum guy knew that the gun is for dehydration, so that means Megamind’s powers / gadgets are relatively known.
I said he more-or-less killed him, not that he actually killed him. Care was not taken to ensure he’d be revived or revivable. He was left forgotten in a pocket. The likely outcome was that he remained forgotten and didn’t get wet until he’d been dropped under some furniture, crushed like a stock cube or gone mouldy. Maybe he had dependents, like a young child who’d have died without their parent. It being theoretically possible to revive someone later doesn’t make turning them into a dehydrated cube meaningfully better than making them dead if you don’t have a strong plan with a failsafe to make sure they stop being a cube. Even with guaranteed revival, if they’re a cube for long enough that they notice the lost time, it’s just like roofying someone and holding them hostage for a while. Do not turn museum guys into dehydrated cubes.