NYC is a legit megacity - New York has been described as the cultural, financial, and media capital of the world.
SF is small by comparison. Only a small portion of SF is walkable and even then the blocks are long. Transit is sparse and dirty and most people end up owning cars. Despite this housing is more expensive than NYC.
Unless you think it's reasonable to pay $4k a month for a one bedroom in Indianapolis it doesn't make sense to stay in SF.