magento2.4 – Can I Change “Order Email Copy” conditionally?

I want to send an Order Email Copy conditionally based on some customer variable.

If the customer location is X the email should be sent to X department, and if the order is from a customer in location Y it should be sent to department Y

How can I get this done?

Thanks