Yes, people are mixing salaries and total comp in this discussion which is unfortunately both common and misleading. It also depends very heavily on the total economic outlook, if you happened to join Google in the fall 2021 cohort your equity was basically going down for the next 3 years and only recovered just now. To claim the average SWE is getting to $1M with that kind of deal is either engagement farming or pure delusion; it has absolutely nothing to do with the reality of most people.
https://www.levels.fyi/companies/google/salaries/software-en...