Look, let’s be sensible here and not get emotional. Nation states act in both rational and irrational ways and Pakistan is of course no exception, where it has made stupid decisions. But it has also acted with calculated strategic aims such as the deep alliance it has formed with China. Cherry picking failures skews the picture and all states have failures. Look at the US with its foreign wars resulting in the deaths of hundreds of thousands of civilians.
Nothing emotional there ... these are all well known facts. Only a crazy nation can even consider the option of hopping in bed with the worlds most wanted terrorist and that too by their own Ally !!
And regarding China .... you are practically a Colony for them. They will squeeze every ounce of your usability and hang you dry while selling you snake oil. This is a well known trait of China. You wont realize it now ... time will tell.