Germany introduced law, your are required to notify ministry and get permission, of you leave country for couple of weeks.
Ukraine closed border for men in like 10 seconds.
Desertion has, historically, been a capital crime. Trying to paint conscription as not being a kind of captivity because "you're not legally obligated to stay in your country" is at best wildly disingenuous, and at worst just flat-out wrong.
I think you might need to take quite a bit more time to consider this issue, lest you prove your username much truer than you probably want.
And it remained so for the US in WW2, although the sentence was carried out just once.
https://en.wikipedia.org/wiki/Eddie_Slovik
Major General Norman "Dutch" Cota, who was at the execution, called it "the toughest 15 minutes of his life". For context, Cota was also present at the bloodbath on Omaha Beach, where he famously rallied troops.
Sorry for the edits confusing things. I can see earlier how you thought I meant desertion as opposed to emigration.
Dismissing the loss of freedom inherent in conscription by saying you can avoid it by abandoning your entire life, leaving your country, your job, probably your family behind...even if you do have both the money and a legal path to immigrate somewhere else, which, again, most people do not, that's hardly a reasonable alternative.