I dont think this analysis of Afghans beating British Soviets and USA that correct.
The KINGDOM of Afghanistan fought the british to a stalemate with full support of Russia. It was a cohesive state back then. Not group of militias like today.
Soviet union was never defeated by Afghanistan. Infact the same Afghan army from previous Kingdom was converted into Communist Afghan Army Which fought the Mujahideen rebels. Mostly Afghans died on both sides. Soviet union was largely supporting the Communist government in kabul. Infact if Soviet Union had not faced the stupid reforms of Gorbachev which led to economic disaster and dissolution, Afghan Mujahideen would have been history long ago. Even after the fall of the soviets, mujahideen could not topple the Kabul Government. It was the rise of a new group TALIBAN who toppled and executed remenants of socialist Afghanistan.
While USA made the new kabul government against Taliban using mostly the old mujahideen factions and some old communist allies like dostam.
Afghans have not win a S*** after British wars. All they do is fight each other and destroy their country even more. Some afghans side with one foreign power some side with another and they keep fighting like dogs. Its not victory. Its stupidity. Nobody want to rule pile of rubbish. Na dthe rubbish thinks it is invincible and unconquerable.
Unfortunately at the end its the common afghan people who suffer in this madness of warlords, religious zealots and Opportuinists