Switzerland: my dad had to go to prison for a limited time for refusing military service and had to do an alternative service as well.

I was able to opt-out military in a normal way (just filling a form) and do the alternative service without going to jail, as this was changed in the time between

But the alternative service are 1.5x times the days you have to serve