We all are into to some kind of a guessing game. What could have been, should have been, would have been...
I grew up in the Pakistan of the 1980s when I was beyond a toddler and where the state-owned (and the only tv channel) the Pakistan Television (the PTV) used to air docu-dramas about the 'Mujahideens' fighting the 'infidel' commies. I was a teen ager then. The shows would make you so proud of Pakistan's role and the Mujahideens. And we would see American high officials on regular basis coming to Pakistan and talking to thousands of Afghan refugees, prodding them to fight the infidel Soviets. My dad, of course much older and wiser than me, would say: 'What are these young Afghan men doing here in Pakistan, ha? They should be out there fighting for their country instead of fleeing and fleecing Pakistan!' My dad was not political but he could see the absurdity of the 'Jihad' then which me, a hot-blooded teenager, could not see.
With that said, I will repeat: Pakistan had no choice but to oblige America after 9/11 and Pakistan had to oblige as fast, as much as America wanted and Pakistan would try to get as much out as possible. Only history would judge Pakistan's decisions then but Pakistan certainly averted becoming another Libya, Syria and Iraq then--MUCH to Indian disappointment. But Pakistan's deep involvement in Afghanistan after 1979 was a war of choice which Pakistan's hypocritical and shallow-witted Prime Minister Imran Khan is quiet about forever!! And, yes, however 'Red' would be Afghanistan under the Soviet occupation, it would end up an educated and eventually a responsible State.
I know my position is controversial on PDF but I believe I have the advantages of hindsight having lived in Pakistan and seen Pakistan evolved from a Sufi-oriented country in the 1970s to a country which had started to look like another Iran or Saudi Arabia by the time the Zia ul Haq rule ended--well, not quite as bad as Saudi Arabia and Iran but was getting there had the proto-Taliban Zia ul Haq didn't die.