How the U.S. and China can avoid conflict