Some people should not go to prison full stop. E.g. Someone who owes money, should not be sent to prison.
People who have committed serious violent crime should go to prison, but we should try to make them better people. I know people who are violent but are not completely bad people, they have learnt to be like that and in most cases they can unlearn. Your idea of the way forward implies that people cannot make mistakes, people do not learn from them, and people who commit crimes are 100% without redemption and should be treated as such. unfortunately that approach doesn't work. We have to punish people but also show them how they should be behaving, some people don't have the ability to work that out for themselves, and if they do many more people have suffered than necessary just out of a need for revenge.