I mean, Cosmo serves no purpose. That felt like a bad arc to me.
He even looks and acts awkward, take a look at how he looks:
See? Cosmo has a bad design for being a Sonic character. It felt weird for Cosmo to be hanging around the Sonic characters and granting them their wishes.