To be fair the US left Afghanistan and the remaining Afghani army crumbled to the taliban pretty quickly.
I’d say the two situations are very different, the US successfully occupied a country that was ~7000km from them.
The Russians have so far failed to take a city that’s ~200km from their own border in about 1 and a half years.
We had control for a long time.
If you have control of an area and mismanage it for years, that's not a military loss. Failure at that point is something different.
But it’s still not comparable to Ukraine.
The sheer scale involved is completely different and really shows the ability of the US to project force.
Whereas Russia is currently struggling to get 200km from their own border.
The causalities scales are also hugely different. The Russians have taken likely close to 5x the causalities in about 1/4 the time.
Russia is clearly not a super power but that doesn’t mean other countries like America aren’t.
As for Afghanistan, well, of course never get involved in a land war in Asia. But that wasn't a conventional war, and our military is intended to fight conventional wars. Our forces really are not set up to respond to the Taliban.
The US just lost a 20 year war in Afghanistan against cave dwellers with Soviet-era rifles, homemade explosives and random bits from the bottom of a toolbox. You'd think maybe they'd have busted out the ray guns or spaceships instead of taking the L.