China's ambitions gives the US a choice: compete or co-operate? History shows it’s better not to treat your rivals as enemies, argues Richard Hollingham.