How do you deal with someone who's doing just as much work as a person in SF/NYC, but living somewhere else feeling resentful that they're not making as much?
I don't think you should pay some one more because they want to live somewhere expensive, just like you shouldn't pay them more if they decide they want to drive a tesla.
I don't think that's the problem. The problem is, if you have someone you want in your team, and if that someone is living in SF for example, then you can't offer him the same kind of salary otherwise he will never accept.