I realized I loved the city (for exactly the reasons you mentioned) only when I spent a month in the countryside of Thailand after 2 years of SF. I then spent a considerable time in the major East Asian metropolises, before returning here to rejoin my cofounders. I am far happier than I would be in any non-metropolis, but I can't stop thinking of all the ways SF is just subpar in all the things that make a city great except for interesting conversations with intelligent people, pro-entrepreneurial vibe (minus the VC/fundraising noise), and technical prowess.
Being near my cofounders is invaluable and my heart may be in SF for being the first metropolis I got a chance to get attached to, but I am eagerly looking for a way to live 9 months of the year in a more functional metropolis like NYC, and come here on workations while crashing with friends.