If you create two transactions that use some of the same UTXO as inputs, every node will perceive only one of them as valid. By default, this will be the one that nodes first see: once a node learns about a transaction, it considers the UTXO used in the inputs to be spent from the perspective of the mempool. When the node sees the second transaction, it considers the second transaction invalid for attempting to claim inputs that are already marked as used.
When replace-by-fee (rbf) was signaled in advance, the second may replace the first, but then the first is evicted from the node's mempool.
In any case, there will never be more than one transaction spending the same input considered for block inclusion at the same time.
I would not mention the coinbase transaction, as its ordering is quite irrelevant to the question. tx3 can spend tx2's outputs but no tx can spend coinbase's outputs for another 100 blocks, so its position is kind of besides the point. – Giszmo – 2019-06-06T16:04:17.317