The rule that transactions should cancel each other and destroy the parent UTXO only applies before one of them has been accepted by a majority of the network.
How do I know when a transaction "
has been accepted by a majority of the network"? What is the specific technical process that allows me to know exactly when that has happened?