Okay I'll offer up the alternative.
Show any social worker or mental health professional a violent police interaction and in 90% of cases they will just shake their heads. They deal with the same shit every day and successfully manage many of the same situations without shooting anyone. The police universally try to respond as aggressively and counter productively as they can and it turns mental health crises into violence. Like yeah, there are situations where armed response is needed but so many of the common situations don't require someone pointing guns at people. Go watch a random badge cam video and ask yourself, could a competent mental health worker resolve this? Food for thought, people frequently react in extreme ways to the police because they know how violent and unjust the situation will become with them involved.
For prison at a minimum just stop with the drug war shit. Stop sending people to jail for parking fines and weed and getting them wrapped up in the system so they lose their jobs. An ideal standard could, again, involve mental health treatment, counseling, and rehabilitation. If someone's arrested for stealing shit, maybe they need to be put in a safe environment where they can learn skills, get a job and contribute to society. If they're too dangerous, they need to be in a facility where they're getting actual help and treatment until they aren't dangerous if that day ever comes.
You may be thinking that this stuff is just vaguely cops and jails by some other name and at a hyper superficial level that may be in part, but the meat grinder we've built is definitely not the above in any stretch of the imagination.
There are even more extreme versions like the restorative (not just rehabilitative) justice systems built by the Zapatistas, I encourage people to seek out alternative proposals, there's a whole world of ideas out there.