On the other hand, are we really comparing the leadership of Afghanistan and Iraq to Ukraine and deciding these things are the same?
Last I checked, Ukraine hadn't invaded its neighbors, gassed ethnic minorities, or taken freedom from its entire female population.
The US handled Afghanistan and Iraq poorly, and lied about reasons for going in, but there were actual underlying reasons.
Ukraine is only being invaded because Russia thinks it can.
Hell, Ukraine explicitly gave up its weapons of mass destruction... in exchange for security guarantees... from Russia.