I would note, that depending on the crime (extreme emphasis on this), “paying your way out” might be preferable from a societal view.
An example: Someone causes property damage of $1500. Having them merely pay that back rather than go through all the way to trial - potentially having to stay in jail during that time…