prevent merges with basic rules ie (if both companies have x property is known

we would like to prevent our team from performing merges where both companies or contacts have our custom unique identifier.

ie. Prevent merges in scenario A, allow in B

Scenario A

Company 1

ID: 123425

Company 2

ID: 524321

Scenario B

Company 1

ID:

Company 2

ID: 567890