How to categorize downloaded transfer between bank accounts

How to categorize downloaded transfer between bank accounts

I have two bank accounts in the same bank.  When I download my transactions both show the transfers between the two accounts.  If I categorize them in one account as a transfer to the other account, I end up with duplicate transactions.  There is no way to match them.  How should these be handled?  Thanks.