How to compare and clean up email lists between Brevo and Personio

I have a Brevo module that should list all members and a Personio module that should also list all employees. Now I want to compare lists to see which “email addresses” are in Brevo but not in Personio. The email addresses that no longer exist in Personio should be removed in Brevo. As a test, I wanted to have all email addresses sent to my email to see if the automation worked. to avoid uncontrolled deletion.