A miner can pick & choose whichever transactions they like. They just need to win a block.