It's probably best to have safety nets in place so that people don't reach these depths in the first place.
Overall, there are many drugs addicts and homeless people in the world. It only bothers us when it obstructs our vision, very disgusting sentences like I cant even visit the beach anymore. I think that's fine, there are many beaches and many other places. You can visit the beach somewhere else, these people are dying.
Millionaire Rogan found the sight of homeless people unbearable so he had to leave the state (could be the taxes, but he's also filthy rich. I don't want to say he's just rotten, that's mean. I'll say a few other things instead).
Your society creates an inordinate amount of homeless people, that's first. Worry about the view later. You are lucky that you even get to see poverty up close, most just move the living fuck away from it.
Wait.
Edit:
I bring Rogan up because if you go through his entire catalog, you will see he has hours and hours of content that just bullies homeless people. He has done that to a few other groups, literal hours if you stack them side by side in a compilation. So there was already a lot of damage done in terms of mindshare by this media-arm.
We are dealing with humans here, and all of them, including the homeless and people complaining about views, make up our society.
Imagine if someone spent their time complaining about how pulling over for an ambulance or firetruck made them late to an important life event, so we should stop doing that. I don't think most of us would say "hey wait a minute, this person has a genuine concern. Let's not trivialize it".
I don’t go out of my way to help the homeless either, but I also don’t go out of my way expressing how disgusted I am with them, or rally behind politics that are net bad for everyone just because I really agree that SF is really not to my liking.
You moving away was the adult thing to do. You adding to the carrion call of maga voices is reprehensible.
Enjoy your beaches.