I know that miners have freedom to choose transactions from memory pool,
Let say there are 5 transactions Tx1 Tx2 Tx3 Tx4 and Tx5 in memory pool,
There are 3 miners M1 M2 and M3
M1 has created block with Tx1 Tx2 and Tx3
M2 has created block with Tx2 Tx3 and Tx4
M3 has created block with Tx2 and Tx5
==
M1 successfully solves the block and get reward in terms of bitcoin and transaction fee
at same time M2 and M3 successfully solves the block, In this case, will M2 and M3 gets reward and transaction fee? as Tx2 was already part of M1's block which was already confirmed.