I find SF to be a city where tourists roam the entire place and immerse themselves as they can (attempt) into the culture. The Haight has a surprising amount of tourists and none of those hop on hop off busses miss it on their circulations. SF is one of those cities that has helped shape American culture, for better or for worse, and I think the world recognizes that and is intrigued by it. It's truly a worldly place.
This is an interesting list.
http://blog.euromonitor.com/2013/01/top-100-cities-destination-ranking.html
Of NA cities, the following are the most visited by international travelers:
#9 - NYC - 10.04 million
#15 - Miami - 6.46 million
#19 - Las Vegas - 5.39 million
#23 - Los Angeles - 4.92 million
#28 - Orlando - 3.83 million
#44 - San Francisco - 2.92 million
#47 - Mexico City - 2.85 million
#49 - Toronto - 2.74 million
#53 - Cancun - 2.49 million
#72 - Vancouver - 1.89 million
#81 - Honolulu - 1.80 million
#91 - Washington DC - 1.62 million
The US and Canadian cities use their country's respective "National Statistics Office, i.e. Census Bureau, and Mexico City uses hotel/accomodations to measure.
For perspective on some world cities, Rio de Janeiro and Sao Paulo were #86 and #89 respectively. Venice and Florence were #76 and #78 respectively. London beat out Paris by a considerable margin (millions). Hong Kong was #1, though that could have to do with Mainland commuting patterns. Mecca was #16, and they obviously host a ton of folks from around the world for religious reasons. Israel didn't have any cities that made the top 100 list, not even Jerusalem. Beijing was #22. Berlin #30. Tokyo #48. Sydney and Melbourne #51 and #88 respectively.
NYC is really the only city on a truly different level when it comes to international visitation. Las Vegas is surprisingly high. It would be no shocker if 90+% of Miami's international visitors were Latin. The draw of the Mouse cannot be understated when discussing Orlando. Los Angeles and San Francisco are on appropriate ratios to each other if one considers area population. But for the very reason that Chicago isn't listed, neither is Boston, neither is Montreal, and SF beats out Toronto, Mexico City, and Cancun I think is a real testament to its worldly draw.