That sounds like a reasonable comparison, until one realizes that we are not talking about WMDs here, we are talking about the occupied Palestinian territories. Then, your comparison not only falls apart, but is also exposed as a bad faith one.
First, if Israel giving up the territories is similar to Ukraine giving up its WMDs, i.e., an existential threat, then Israel should never do that. I.e., peace is impossible and the two state solution is impossible. The only option left is ... ethnic cleansing and genocide. Is that what you are arguing for?? Be clear about what you say. Because I don't think you are arguing for the dismantling of the apartheid regime in all of greater Israel: one state from the river to the sea with equal rights for everyone.
Second, Israel actually has WMDs and would be keeping them after the establishment of a Palestinian state. So, if anything it would be in a stronger position than Ukraine, heaving the guarantee from its neighbours and its own WMDs to fall back to.
Third, you are comparing Israel to Ukraine. This casts Israel as the victim, the one that is subjected to occupation and violation of its integrity. The opposite is true. Israel is the occupier, the oppressor and the violator international law.
So, no, your comment doesn't stand to scrutiny.
Poor boomers and rich millenials exist.