I don't really buy into this argument because NATO has done no such integration and has actually pretty much made a policy of leaving Ukraine out to dry, even with its extremely pro-West government right now (there is no way Putin doesn't know this as well): yet here we are, with an invasion into Ukraine by Russia.
> And then they now moved to integrate the new Mexico into their military alliance
But this didn’t happen! Ukraine did not join NATO.
As for the John McCain bits, you ask whether it would be in the US’s interests to invade Mexico if Putin went and gave a pro-authoritarian speech there? Of course not! We would be fucking insane to do that.
I feel like we largely lack any perspective because so many of things that are happening are something so completely foreign to us that it's difficult to even realistically imagine it. Imagine if Russia formed a 'defensive' military alliance whose primary mission was to contain the US. And they then gave speeches, such as McCain's, in Mexico City shortly before a pro-US Mexican government was overthrown by an insurrection and replaced with a pro-Russian one. And then they now moved to integrate the new Mexico into their military alliance which would undoubtedly result in 'defensive' weapons, arms, soldiers, etc being placed right along the US border - possibly to the point of imperiling our credible nuclear deterrent.
I would certainly agree that Ukraine is not just a US pawn and wants to decide it's own fate, and deserves that. But there's also no doubt that it's political present and future is instead repeatedly decided by outside actors.
[1] - https://www.youtube.com/watch?v=93eyhO8VTdg