Let's set the shouting aside and look at it properly, because this match-up gets argued constantly and never settled.
Sonic's whole identity is speed and momentum, backed by a long list of transformations and power-ups. Lucario is a different kind of threat: an Aura Pokémon that senses and shapes energy, hits hard at range, and reads an opponent's intent before the move lands.
There is no official crossover that decides this, so any answer is fan theory dressed up as fact. Reasonable fans land on both sides — Sonic if the fight is pure footrace, Lucario if it turns into a brawl where reading the opponent matters. Pick your favourite and enjoy the argument.