Afghan National Army was never armed with "high-end" Western equipment (i.e. MBTs, anti-air systems, cruise missiles, fighter jets). They only received rifles, sniper rifles, armored trucks, howitzers, and relied on American airpower support.The previous Afghan government had "high end" Western military equipment. How did that work out for them?
If Ukraine was armed and trained with NATO anti-air defense systems, MBTs, fighter jets, cruise missiles, then they will likely stalemate Russia.