Can I search for "field1 equals field2"?

I would like to find all cards in a shared deck where the contents of two of their fields are equal.

Is this possible?

Not directly. Check Searching - Anki Manual for all the available search queries.

I think you can however export the notes as .csv and do it outside Anki.

Ok, thank you!
I searched the manual beforehand but found nothing. I was hoping there was a hidden trick or something.