Gaol and prison are the same thing, just a different name. A gaol is a prison but that is the terminology from history.
Well, going to prison before jail kinda implies no due process/magistrate/bail, etc.....