I would say that any method of pre-confinement rehabilitation is a better alternative than imprisonment, I'm sure those being sentenced have an opportunity to decline if the sentence is religiously objectionable.
I do agree to an extent, but some would consider the choice between jail and church an attempt at forced conversion involving the Gov. There are Muslim judges in America now, would Mosque or jail be as acceptable?