Move-SPUser will translate all identities for a user across the entire farm and would be the appropriate method to use. I suggest you run following PowerShell as the Farm Administrator or a user with Full Control over the User Profile Service Application.
$user = Get-SPUser -Identity "DomainA\user1" -Web http://sitecollectionUrl
Move-SPUser -Identity $user -NewAlias "DomainB\user1" -IgnoreSid
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.