By the way, if you’d like to see a real life example of this neighborly coercion you’re so concerned about, Russia is the most guilty party with its blocking units. As a matter of fact, given the tremendous amount of dead on the Russian side, you should be appealing to Putin to stop this, not Ukraine.
The conflict can be stopped right now with loss of territory so long as Ukraine is given trustworthy guarantees that Russia won't invade again as soon as they've licked their wounds a bit. That is the ask, and the only one who can provide that is realistically the United States, or Europe with guaranteed support from the United States.
You appear to forget history, but plenty of citizens were able to leave through the back door while able-bodied citizens were required to do the only reasonable thing a democracy can do and defend its sovereignty.
First with what they had, then with conservatively provided weapons as other countries tried to figure out if Putin would actually use nukes, and finally with more effective munitions when it was apparent he would not.
No neighbor is locked in, and the US embarrasses itself as it simps for Russia in the UN and parades the president of an invaded democracy around in a jester hat.
The human cost for this sad excuse of a "peace treaty" will completely decimate Ukraine and simply delay the next attack.
Welcome to a war, those rights are not free.