Some companies, some products, some teams, some (lower) level of stress, some amount of learning you are getting, some work/life flexibility - at some (temporary?) point in your life - might make a lot of sense to be considered together with the $ you get paid. I am all up for maximizing what you get out of your job, but you might want to optimize for multiple factors, not just salary.
Also, this discussion is very centered on yearly comp. It’s good practice to ask yourself how risk prone you are? That early stage startup equity comp might turn into much more than you will ever get paid at a large established company.
So when you are maximizing, ask yourself over what time horizon you want to maximize? One year?Three? Five? Ten years? It’s rare to get truly great things instantly.