You’re making a lot of spurious assumptions and generalizations. The overwhelming majority of the time the homeless are just minding their own business. Some are certainly more annoying than others, some smell worse than others but that doesn’t justify criminalizing all of them nor does it justify abdicating moral responsibility as a society to care for those that often for no fault of their own fail to integrate into the structures that have evolved. There are other solutions, none of them are going to be perfect. Maybe criminalizing sleeping on the street is fine as long as the city provides places to sleep that are reasonable.
Now the root of your objections are shown to be just callous indifference to human suffering. That’s fine, just come out and say you don’t care and can’t be bothered. You want to live in a world of machiavellian justice. Be careful what you ask for as maybe that knife will fall on your head or someone you care about if you are capable of that.
It’s hard to take you seriously when you try to conflate Marxism and religion, the guy that viewed religion as “the soul of soulless conditions” or the “opium of the people”. Or when you intimated that society was structurally fair. In what way is it fair that one person can be born to wealth and privlegde and another to poverty and lack of options? But even beyond the rules of society, there is no fundamental fairness in the universe. Some people get lucky others don’t. Some people are healthy others aren’t. It’s impossible to have any reasonable discussion when the starting point is so fundamentally divorced from reality.