You could use the Azure Expressions to skip syncing the secondary email when both the primary email and secondary email are the same.
For example, if you would like to sync the "username" as the primary email and "email" as the secondary email, then you can set the attribute mapping for secondary email as an Azure Expression as follows:
IIF([username]=[email],'',[email])