The rivalry is part of a wider competition between China and the U.S. and its allies over technological and economic supremacy.