Depending on what you’ll be doing in that area. Do you need to “live” around that area? Or do you just need to be there during business hours? The area south / east from Union square is not bad, though most places are closed after business hours. South of Market, and east of 5th / 4th are generally cleaner / safer than the western part. If you could find an temporary housing in that area, your stay would be quite pleasant.
Tenderloin is bad even during the daylight - I’m scared to even drive through Eddy / Turk / O’Farrell. You’d be amazed at the kind of alerts I get on my citizen app about incidents in Tenderloin / Mission.
For visitors, the perception of a city is often defined by the most touristy spots. For NYC, it’s Times Square / Empire States Building. For LA, it’s Hollywood, Santa Monica beach, Beverly Hills. Seattle: Pike Place / Space Needle / Queen Anne.
For SF, the most touristy places are often the worst, and the city should be doing much more to upkeep the allure for visitors. And for those who think all the tech money and gentrification is bad – if the tech boom didn’t happen in '00 and post '08 recession, this city would be no different from Detroit. Either we should learn to embrace the new comers, or we become stagnant conservatives.
Sorry for the rant - I need to vent about my city from time to time.