It’s not about keeping the US navy out, it’s about having an open lane for Chinese ships to get into the Pacific. The entire Chinese cosst is boxed in by islands (and South Korea) that are staunchly pro-US. World powers have always been willing to fight in order to secure their access to foreign markets and secure trade routes.