While this is possible with a custom code action and Javascript/Python in a workflow (requiring Operations Hub Professional or Enterprise), I find it easier to create a sync and a calculation property:
The sync property would be created on the deal object and pull the company owner.
The calculation property would compare with an easy if statement.