Despite their rivalry, it's very unlikely that Shadow the Hedgehog would ever kill Sonic. The two may clash from time to time, but they actually make an excellent team.
When they set aside their differences, Shadow and Sonic fight remarkably well together, combining speed and raw power. Their relationship is more about mutual respect between rivals than genuine enemies, so fans can rest easy — these two are better as allies than adversaries.