I did not compare their interests. I have tried to assert this time and again :- If A is wrong, this does not mean B is right.
A and B does not come in here. It's a much more complex thing than reducing the problem to A and B. If it's in Pakistan's interests to support Taliban, it will do it. If it was in some other states interests to support Taliban, it will do that as well.
We supported the Taliban in Afghanistan and have suffered because of our myopic policies and hegemonic ambitions. It's time we stop looking at greener pastures abroad and focus on our domestic problems more unequivocally.
Look, India utilized 9/11 to get into Afghanistan and support TTP in terms of funding, resources, training, and planning. Supporting the Taliban for us was important because we would get attacked by USSR if we did not. So that's out of question. I agree that we need to look at our domestic problems more carefully, but that doesn't change any of this.
US and India supporting Taliban is bonkers and out of the realm of possibility in today's world. Even if they do in an alternate universe, it is their concern and we should seek to nullify any negative consequences of such support but not seek to support them ourselves, ideologically or any other means.
Again, if it's in their interests to do it they will do it. 40 years down the road if things change and they need to support Taliban (assuming Taliban exist then), they will do it. To nullify any consequences of those actions would be nothing different than attacking Taliban militarily or through other groups. The former might not be a good idea as it might turn into a full-fledged war/conflict.