The U.S. and China can spiral into military confrontation — but diplomacy is more necessary than ever to avert worsening outcomes.