True.
But please keep this in mind that the US was 10,000 miles away from Pakistan, however China is our next door neighbor with whom we share a common border. Relationship among countries with common borders and with whom you do not have any territorial dispute is entirely different ball game. They share common interests, as we do with China. US-Canada relationship can be cited as a good example
On the other hand, neighbors who have territorial disputes and are always at logger heads among them the whole relationship gambit is a different ball game. Case in point.. Pakistan India relationship.
Additionally, there is no one shoe that fits all when it comes to relationships among the nations.
It is my considered opinion that Pakistan China relationship is entirely different scenario as compared with Pakistan US relationship, there is no comparison between the two. Pakistan will gain more keeping good relations with China as the two nations share similar interests... both economical and in the area of defense.
Among India China, they may have good economic relations but never ever in the defense field as they jealously guard their own interests and are rivals.