https://www.merriam-webster.com/grammar/jail-vs-prison-difference
What to Know
Jail and prison are often used interchangeably as places of confinement. If you want to be specific jail can be used to describe a place for those awaiting trial or held for minor crimes, whereas prison describes a place for criminals convicted of serious crimes.
Then there's GITMO for more serious crimes & ultimate justice meted out.