When a node finds a proof-of-work, the new block is propagated throughout the network and everyone adds it to the chain and starts
When a node finds a proof-of-work, the new block is propagated throughout the network and everyone adds it to the chain and starts working on the next block after it. Any nodes that had the other transaction will stop trying to include it in a block, since it's now invalid according to the accepted chain.