The ones in Ukraine got moved into Russia, in exchange for Ukraine receiving money and security guarantees.
This is not an accurate comparison.
It's not that Russia had nukes in Ukraine and withdrew them. Many of the Soviet soldiers manning them were Ukrainians and stayed behind. Much of the infrastructure for maintaining the Soviet arsenal was also in Ukraine and had to be rebuilt in Russia. The situation was more akin to if the US broke up and Louisiana (which has a lot of nuclear warheads stationed in it) is dealing with whether they are now a nuclear power, or if they need to hand them over to South Carolina or something.
Russia is the single legal successor of the USSR, so all Soviet nukes became Russian nukes, regardless where they were located. So after the USSR broke up, Russia did have nukes in Ukraine and withdrew them.
It's not quite the same, since Ukraine was part of the USSR, and Ukrainian scientists, engineers, and tradesmen contributed to the effort. Germany, on the other hand, was never part of the American federation, and didn't contribute to American weapons development...since Wernher von Braun/Operation Paperclip.
Ukraine at one point wanted to formally claim ownership over the weapons, as after all breaking the permissive action locks wasn’t that difficult. The US talked them out of it, as a lead up to the Budapest Memorandum.
We all know how much the security guarantees of that agreement were worth.
https://www.mearsheimer.com/wp-content/uploads/2019/07/Mears...
He was right in 2014:
https://www.mearsheimer.com/wp-content/uploads/2019/06/Why-t...
And he is still right:
https://mearsheimer.substack.com/p/who-caused-the-ukraine-wa...
It ignores that people should have their right to self-determination, don't want to live under russian oppression. As somebody whose family lives were ruined by exactly same oppression of exactly same russia (err soviet union but we all know who set the absolute tone of that 'union' and once possible everybody else run the fuck away as quickly as possible) I can fully understand anybody who wants to have basic freedom and some prospect of future for their children - russia takes that away, they subjugate, oppress, erase whole ethnicities, whoever sticks out and their close ones is dealt with brutally.
Not worth the electrical energy used to display that text. Unless you enjoy russian propaganda, then all is good.
I think the real difference lies in whether one believes Ukraine deserves to decide its own path, or if it's forever doomed to be a chess piece on the board between spheres of influence, which seems to be the mindset both Putin and Trump are stuck in.