A more fair comparision is comparing San Francisco to Manhattan.
A more fair comparision is comparing San Francisco to Manhattan.
Obviously I wasn't looking at single-family homes in Manhattan, but when it came to studios and 1BR apartments, the busy parts of SF (e.g., not the Sunset or Outer Richmond) are probably marginally more expensive than Manhattan.
If you want to get as close, lifestyle-wise, as possible, you're comparing Rincon Hill to Midtown, and Rincon Hill will be more expensive. Even if you expand the parameters out to the high-rises in western SOMA (towards crack-stab-town) SF will still edge out.
If you're comparing more residential-y areas, like, say, the Upper East Side to Hayes Valley or the Castro, SF will still win out, though you will probably get a tad more space in SF for your troubles.
It's hard to declare with great certainty who is the clear winner (or rather, loser), but SF is definitely neck and neck with Manhattan.
The commute time by subway from Flushing, Queens to Lower Manhattan, for example, is about an hour. If you're willing to include that commute radius for NYC, the SF equivalent would also have a number of affordable places to live. For example, you can head 45-60 mins eastward on either the Dublin/Pleasanton or the Pittsburg/Bay Point BART lines. Or even closer, the going rate for a 2br single-family home in San Bruno (30 mins by Caltrain or BART) is around $2500.