The reply here was a scolding — "obviously you're not a Sonic fan, even their colour is different" — which is not an answer. The real differences are more interesting than fur shade.
Sonic is the original Sega mascot, a blue hedgehog defined by speed and a free-spirited attitude. Shadow was created decades later, in Shadow the Hedgehog, as a black and red hedgehog with a tragic backstory tied to a human girl and a fifty-year-old promise.
Sonic is cocky but fundamentally optimistic and loyal. Shadow is brooding, driven by grief, and initially hostile to everyone. Mechanically, Shadow uses Chaos Emeralds to teleport and distort time, while Sonic's abilities centre on raw acceleration and spin attacks.
Shadow functions as a rival and occasional antagonist rather than a villain — closer to a Vegeta figure than a Dr. Robotnik one. That rivalry is the point of the character, and it is why the two are constantly compared.