The two Asian powers share common cause on several fronts, from globalisation to climate change, and both would be wise to focus on cooperation instead of military brinkmanship