It's also worth mentioning that mining pools can choose what transactions can they include in a block, though in most cases, the higher the fee, the higher priority it has on the queue.
important to point out that we're talking in terms of higher transaction
fee rate not
fee amount and fee rate is calculated based on fee per byte of the transaction size
so a transaction with higher fee amount of 10,000 sats for 10kb tx size (= 1s/byte) is considered lower priority
than another transaction with fee of 1,000 sats for 250 bytes tx size (= 4s/byte)