When you migrate a user from domain A to domain B, SharePoint 2016 does store SID history. With SID history, a user would continue to use their old account to access SharePoint until the old account is disabled in AD, the new account is enabled and their account has been migrated within SharePoint (Move-SPUser). From that time forward, the user would only use their new account to log in and access SharePoint.
It's recommended that you remove SID history once the migration is complete.
Here're are references about remove SID history.
https://n8d.at/move-users-from-domain-a-to-domain-b-in-sharepoint-with-claims-authentication-enabled
https://joshroark.com/keeping-sharepoint-happy-during-your-domain-migration/
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.