All wars happen for a purpose or a goal, no wars happen just for the sake of wars themselves. US lost completely in Afghanistan, same as Soviet did, Do you claim that Soviet Union won the Afghan war as well?
I'm waiting for this exact answer from you. Now I'm going to give you a run for yur money
While it's true that all military wars are in the sole purpose of achieving political victory, there are some difference on where such scenario such as that in Afghanistan could be imitated elsewhere. For example this thread casts
doubts if the US military is capable of winning war against China
On the one hand, the world has become more complicated, and on the other hand, potential opponents are hauling the United States technologically and militarily strategically at an eerie pace.
In Afghanistan no matter the military defeats suffered by the Afghan Talibs doesn't result in political defeat for them. Because they simply run away and hide while continue to recruit in the safety of the rural areas.
Now the most likely place war will start between that of China and US will be in the Taiwan strait.
China's quest to rule Taiwan has already begun with a campaign of
www.reuters.com
a US military victory in the Taiwan strait
WILL ensure political defeat for the PLA/CCP. Once the USN thumps the PLAN or the invasion of Taiwan failed, the only worry left for the CCP is to control anger and dissent at home.
hence the military victory in AFghanistan =/= military victory elsewhere.