But corp logic: it's cheaper to raise ONE top performer when he wants to go than to raise EVERYBODY (even those not interested in leaving) to match market
Further in some corporations, interviewing for other positions is a bright shiny red flag for that person to be let go or fired. Even if they accept the counter offer.
If I could get the same amount of money from my current job I would probably stay unless I'm sure I would love the other job more. Because when money is a constant, it's either do I want to keep doing what I'm good at, or jump into something possibly different (and riskier).