Chechnya is infinitely smaller then Ukraine or Afghanistan, with a fraction of the population, little to no industrial base, little international support, poor morale, poor infrastructure, no modern weaponry, and only one real major city.
Comparing Chechnya to Ukraine or Afghanistan seems laughable.
That’s like saying “The US could take on Grenada in days/weeks, so why did they struggle in Vietnam?”