Even strong allies cannot agree on everything, and that is ok. Pakistan may not see eye to eye with China on Myanmar, and that is a geopolitical reality that plays out in many other areas. We also do not agree with them on their relationship with Turkey. Until recently, we did not agree with China on Russia too. And China did not agree with Pakistani policy on a number of issues, including Russia, Turkey, the US, etc.
Similarly, India is allied with the US, but is also close to the Iranian government, which in turn is vilified by the US. Pakistan is close to Turkey, which has close diplomatic ties to Israel, which in turn is not recognized by Pakistan.
Apparent contradictions play out within bilateral relationships all the time. Look at the volume of trade between China and the US, yet they are political rivals.
While India and China were eyeball to eyeball re the Doklam dispute, Modi's demonetization was facilitating massive profits for China's Alibaba through Paytm.
These are realities of geopolitics and international relations that hold true for all countries, allies and rivals alike