The sanctions on Russia are deserved. Trying to apply those same sanctions to China would be incredibly difficult, especially because Europe wouldn’t back them.
Of course, if the US went to war because China attacked an ally, and they were invited to defend against an invasion, that changes the calculation. The aggressor bears the brunt of international sanctions.