How to resolve Dir Sync error “duplicate UserPrincipalName conflict”

I was recently prompted about a Directory Sync error witting Microsoft 365 Admin Center. The user account had the message “We detected a duplicate UserPrincipalName conflict on the value [email protected]. All attribute values need to be unique across objects. To resolve this…