Terminal: Adding logic to 'find' directories containing either [criteria A] or [criteria B]
You can do this using ls and grep with regular expressions

ls | grep -E "(guess1|guess2)(\.extension1|\.extension2)"


Or if you need to recursively look into folders:

ls -R | grep -E "(guess1|guess2)(\.extension1|\.extension2)"