seo – intentional duplicate content. Google indexes the wrong domain

We have a group of websites that are very similar to each other. All websites are for the same type of business and they all have mostly the same products and so on.

The websites are supposed to be 90% identical to all other sites in this group. The only difference is information such as coordinates, logo, header, etc. The choice of the online store is mainly similar.

The problem now is that Google indexes the wrong page for the wrong domain because it is marked (correctly) as duplicate content.

For example, the A website's contact page gets the name of the B website in Google's index. This is of course confusing and problematic because the linked address information is false, and the website owner does not like to be found under an incorrect name in Google.

Is there a way to tell Google that it must keep the correct metadata in the search results?