What would be the objective of such a war? Regime change? Iraq and Afghanistan are both much smaller, yet the US wasn't too good with that.
Sure, the US could probably protect itself from any nation's military. But there's no universe where a successful incursion into China leads to anything apart from massive pain for everyone involved