In SF, you have to pick up after your dog but not yourself.
Simple solution, if seen urinating in public you get an automatic 30 days in jail for indecent exposure and if caught defecating in public 90 days in the nut house for observation and treatment, because only a crazy person would pull their pants down and take a dump in public, especially a large city.
Dogs are cleaner.