2 confirmed block will be linked in the same time to the blockchain creating from that moment 2 separate blockchain
Is a valid block that is then rejected from the network as not present in the longest of 2 blockchain .
When two miners solve a block at the same time , both their valid block are connected to the blockchain in parallel way , after that a third miner will eventually connect to one of the 2 valid block, The block now in the shortest of the 2 parallel blockchain will be the stale block, this block will be rejected and the transaction in it will ends in the mempool
To ensure that your transaction is confirmed in a irreversible way(without possibility to end in a stale block) , with less than 6 confirmation would be possible that your transaction ends in a stale block and so after that would be back in the mempool waiting to get picked up again from a miner.