I'd give it to Sonic — and my reasoning is almost circular. Sonic is the main character of his series, and if Flash were the faster of the two, he'd be the one headlining.
Of course, that's a fun argument rather than a rigorous one. The Flash's whole premise is the Speed Force, which bends time itself, so a strict physics comparison would go his way. But within the logic of their own franchises, Sonic's identity is built entirely on being the fastest thing alive, and that's the version most people mean when they ask.