beat to

Intermédiaire supérieur (B2) informal

To get somewhere or do something before another person can.

"I was about to suggest the same idea, but she beat me to it."