beat someone to the punch

beat someone to the punch

anticipate or forestall someone's actions.
See also: beat, punch