I agree completely with you here. Prisons do not rehabilitate, and they are a poor deterrent. Especially longer stints in prison tends to damage the inmate rather than improve.
There's a enormous difference between what "prison" is in France, US, Sweden, Russia or Thailand. I wish the world would at least move towards the "best practice" of prisons, because there are such things.
Prisons are terrible but honestly does anyone believe the world would be better without them.