Wiktionary
beat someone to the punch
vb. (context idiomatic English) To do something before somebody else is able to.