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.