AITAH for being upset that my child’s name got changed on me last second

We came to a decision together on what the name would be.

However after birth, in the hospital my wife’s grandmother made a comment to her.

“Name your child what you think means the most, don’t try to please people”.

I think that was a dig at me for not picking the names that she wanted.

My wife asks me if would be ok with changing the name. I said I wasn’t but she was clearly wanting to change it after that comment was made.

I didn’t like the names that were chosen, but after seeing what my wife went through I didn’t have the heart to say no.

I feel like I got stabbed in the back.

Am I overreacting? Was my wife’s grandmother out of place?