There's an In-N-Out on the north side of SF and Chinatown has a ton of cheap eating options. You can eat for cheap in either city.
Chinatown, yes.
SF strongly limits fast food (which I find annoying). My suburb home town had more McDonald's locations than SF does.