Let's go with Satoshis.
You have bought once 1000 sats and once 1000 satoshis. You move them both to the same address you have different outputs but the same balance. Then you decide to spend 500 satoshis, from which batch have you spent those satoshis? When you have two packed cars in a garage you for sure know which one you have sold, right?
Do you really think the IRS will waste time trying to figure out this kind of thing?
Nobody in the IRS is going to care about the transactions ID, what they are going to care about is the proof you have paid x for them, the statement from the bank or the exchange or whatever means you have used to purchase those coins.
Especially since in the UK it's clear they use share pooling I advise you to speak with a tax expert before you go out and do something you might regret based on what you think it's right.