Perhaps the solution to such a complex problem isn’t as simple as a “do this and don’t do that”. Perhaps a complex problem should be looked at more multi-dimensionally.
Like most things, loans can be good and loans can be bad. Context matters. The rule of law is meant to protect people and keep the economy healthy. The law is ever-evolving. Sometimes it comes up short but in a healthy nation it can adapt itself to the times.
Regarding mortgage, most people in the west use their home as their retirement fund. After 10-15 years of ownership, the house is often worth twice as much as their total mortgage. The difference between what the outstanding debt and the value of the asset is called equity, and this can be quite substantial.