Also worth noting -- if they offer more money, and you stay, that implies that you were leaving (or just threatening to leave...) because of the money (rather than discussing money with them in a more upfront way).
That would change your relationship somewhat, going forward, so don't do this unless you actually would be content to stay at the higher salary longer term.
That would change your relationship somewhat, going forward, so don't do this unless you actually would be content to stay at the higher salary longer term.