There is an interesting thread on Reddit on a topic we touched on here several times, the topic of Google ranking the wrong version of the URL in Google Search. It all stems back to the URLs you want Google to rank being near duplicate to the URL Google ends up ranking.
The person said on Reddit that Google is ranking the wrong domain name on Google Search, he wrote:
John Mueller’s answer is very very detailed here and it stems back to previous answers he has given on this topic specific to near duplicate content confusing Google. Heck this is similar advice from Pierre Far in 2012 when he worked at Google.
Here is what John wrote:
How is that for a detailed and super useful response?
Forum discussion at Reddit.