I worked as a Data Science engineer in Seattle (startup), and just moved to San Francisco this year (Google). I know this sounds trivial, but I think the more pleasant weather in the Bay Area is beneficial to my career. The lifestyle aspect is just icing on the cake.
I can't get up in the morning when it's rainy and cold. Of course, I do show up to work, just a little bit later in the day than if the weather was pleasant. I'm less refreshed. I think less clearly. I work less efficiently. I make more mistakes. I feel less healthy, because grogginess and caffeine consumption is positively correlated. That's the effect weather has day-to-day. Week-to-week, month-to-month, I can't help but avoid having S.A.D. (Seasonal Affective Disorder) in Seattle. Occasionally, I'd have an Existential Crisis, to use the term lightly, questioning whether my work is meaningful, whether I've sold out on my passion for programming. It helps that I work at a Google, but San Francisco weather definitely makes me feel more excited for work.
Maybe things will change when I want to own a house. Until then, even if my take home pay minus cost of living in the Bay Area is lower than Seattle, the Bay Area is still a better payoff, both in finances and purposefulness.