Reward in case of fork.

Hello, I would like to ask you some details about how to get a reward from the mining block when there is a fork: two miners get different blocks at the same time. Both of these blocks will have the coinbase transaction. Does it mean that both user wallets will have information about this transaction? If yes, what happens when the two users go quickly to the bitcoin ATM and obtain the trust currency of this reward?