Once the US is out, the competition will be between Taliban (IS, Al-Quaeda types) and Pakistan (ISI, Bajwa). That competition is there even now in Pakistan with Fazal-ur-Rehman leading the opposition against Imran Khan and the army. The religious extremists want an Iran-type Islamic revolution in Pakistan though of a Sunni shade.
Pakistan army wants their hegemony in Afghanistan without US interference because their plans do not stop with Afghanistan.
Pak Army has no desire to be used by US because they have their own desires - hegemony in Central Asia (to be bigger / stronger against India, with Chinese help).
They want a "Khorasan Vilayet" not for IS or Al-Quaeda, but for themselves. That is only side where they can expand (Turkmenistan, Uzbekistan, etc.).
Pakistan has been the base of the Afghanistan problem. IMHO, US sees it but can't do much about it. If the US had not provided F-16s to Pakistan, Pakistan would have got its equivalent from China.
As for who dies, that is never a worry for Islamic terrorists and power seekers. Allah controls births and deaths. If Allah did not want it, the babies would not have died.
I think no one understands Pakistan better than Indians.