China’s growing stature in the world is pitting it more and more in competition with the United States.