Having seen neither one, I'm going to have to say Megamind based on the clips I've seen and what I know of the story.