I believe there to be some merit to the notion that it is better for society if many of the generational cycles which lead to crime are broken. Sometimes that involves off-ramps from the road to incarceration.
That said, the policy can be, and certainly is, applied in imbalanced ways when justice is pursued over pragmatism.