Is shooting at neighbor worse than shooting at people half over the world (or they don't count because of wrong skin color)?
The problem with this kind of whatabboutism is that the US invades places run by morally reprehensible people. To keep the comparison with Ukraine going, you've either got to convince us that Saddam Hussein was a nice guy, or Zelenskyy is a butcher. Everyone knows that's bullshit.
What's happening in Ukraine is reprehensible - but the result of US policy blunders in places like Afghanistan, Iraq, Iran, numerous South American countries and the like has been more damaging for the world we live in IMO.
While this isn't an apples to apples comparison, maybe you've got to convince us that the people of Iraq, Afghanistan, Iran, etc. are better off after US involvement. From my perspective, the answer is an obvious 'no'. Even under Saddam Hussein (who was a dictator and evil person - I'm in agreement there) the people of Iraq, who lived under some repression in their daily lives, were better off than before the US invasion.
In Iraq, about a third of the population (the Kurds) are unequivocally better off. About a third (he Shias) are arguable. The Sunnis, no, but they were the ones beating up the others. The final history hasn't been written yet (and it could get worse, no question). Still, the story is incompetence rather than malevolence. Marching in and killing Hussein is easily defensible on moral grounds. The chaos after is not.
Blunders in Latin America have to be taken on a case-by-case basis. Mostly they involved supporting one side or another in an existing civil war. The worst excesses predate WW2.
Nobody claims that the US has an angelic past, but comparison to Putin's Russia is not apt.
So a Mexican invasion when Trump was President would have been okay? Only if rest of the World knew...
Through oversimplification you can argue that anything is the same as its opposite.
We don't have to build a wall to keep our people in. Or our allies for that matter.