No — and the Sonic fans will be quick to tell you so. There's a whole contingent who'll argue the blue blur has always had the better games, and the speed-based platforming of the original Mega Drive titles holds up remarkably well.
That said, the broader popularity contest isn't close. Mario has the larger audience, the more consistent run of well-received releases, and a film that introduced him to an entirely new generation. Sonic's highs are spectacular but his catalogue is patchier.
So: most people lean Mario. Not everyone, and the ones who don't tend to feel strongly about it.