Leibnitz beat Newton to publication by three years
Leibnitz beat Newton to making it public by three years
Second example: imagine two men are dueling and one wins the duel by killing the other, which is the correct comment to make?
He beat him to the shot
He beat him to firing the shot
I have seen the first sentence of each example before, I was wondering if it is correct to use the second sentences as well and why.