That is one of the dumbest strawmen I’ve seen in a while. It is so inapplicable I’m surprised your post doesn’t auto-delete itself.
Most cities have some type of "clear the sidewalks of beggars" legislation to use as needed.
Besides, as pointed out above, criminalizing normal activities gives the gov't something to do.