Two times, I accepted the counteroffer and stayed (for a while.) It didn’t have any adverse impact. I’m still at the company of the second counteroffer.
My experience is that big companies are typically quite rational about the whole thing. No hard feelings or anything, just business.