I see this at my company sometimes. Mid level engineer will switch from Stream to Google and be surprised that the comp is higher. Of course it's higher, what you're sacrificing is career growth. Early on in your career thats usually not the right move. (of course some people crush it at google. google is probably not the best example, while slower than a fast growing startup its still doing well. Someone else joined the FT or some public companies that literally don't grow.
https://www.saastr.com/why-if-you-quit-every-year-you-wont-m...
If you care about total comp the best options are.A. Grow your expertise so that you can join a FAANG company at a director level. B. Join a series A/B company and hope you can impact it enough to reach a good outcome.
The other thing people dont get it is that you're not negotiating salary once. You have to continue to deliver that value to the company. So if you sell yourself really well, get a massive salary, at some point the company will notice that you're not driving that much value. As an example see the people who joined Fast. I'd look for companies that share their revenue numbers with their team and are transparent.
Sometimes companies that pay the best are also under water in their stock options since they raised at a 200x revenue valuation. It gives them a lot of resources to pay top dollar, but its also more similar to joining a company where you don't get upside.
Not to be misunderstood, in general it's good to take the higher salary. Some people just don't negotiate well and some companies take advantage of that. (Still many engineers in the EU at <40k). You just want to make sure you understand the full picture and not focus only on salary.