In a mining pool, all miners are working on the same exact block with the same exact coinbase.
Are you sure about this?
I heard that the newer versions of stratum allow each miner some kind of flexibiliity
You are referring to the BetterHash and Stratum V2 protocols that give the hashers more control over what transactions go into the blocks.