There eventually have to be talks with the Taliban.
Even though the group itself is a creation of Pakistani ISI, they represent the largest single ethnic group in Afghanistan, which incidentally, has always supplied the nations leadership, such as it is.
The only options are to get them to work with the current Govt. or be prepared to exterminate 1/4 of Afghanistans population and 1/3 of Pakistan's.