> if the foreigner was so good as the American engineer why wouldn’t they be getting paid the same as the American

You should also ask whether you're paying American so much because they are so good, or are you paying them so much because rents in SF are so high?

> Covid hits and everyone goes remote, but the salaries only go up. They always go up.

Once again, did it go up because COVID infections somehow made american workers even better or because lockdowns caused mini tech boom while money printing tanked the dollar's value?

Do you really think companies are paying high tech salaries out of the goodness of their hearts? Like “oh this individual lives in a HCOL area, let’s pay them an appropriate amount” or “let’s share the spoils of this tech boom with our workers! $1.5million dollar bonus for everyone!”