Why are you so impatient that you need to spew your diarrhoea on every thread?
Both problems require dealing with as both originally arose independently of one another.
Afghanistan will not suddenly stop hating Pakistan if we nuke you today.
Are you cognisant of their history, specifically that they now refuse to acknowledge the Durand Line, after historically having notarised a formal agreement through Abdur Rehman Khan in 1893, further ratified and re-stated in 1905, 1919, and 1921? You should have some rudimentary knowledge because Hindus and Sikhs also fought against them to enforce said arrangement.
That they work together with Hindustan today is an inevitable consequence of their hatred for Pakistan, not a prerequisite for it.