Profits, look at Apple. They're not even close to selling the most phones, but they're making the most money from the smartphone market. When you have one of two choices and the second choice is much less profitable, from a business perspective, you're losing.
It's not a maybe, Apple continues to be the leader in the space when it comes to profits despite shipping 87% less units.
"Apple has been the biggest profit and revenue generator in the handset business. In Q2 2021, it captured 75% of the overall handset market operating profit and 40% of the revenue despite contributing a relatively moderate 13% to global handset shipments."
They were never really intended to "win" because Google values their partnerships with other phone mfgs. They spend way less on marketing the Pixels and they really exist just to keep mfgs honest and to showcase what Android can/should do when it's not inundated with bloatware and crappy firmware/drivers. Meanwhile, Samsung is trying to sell you a Tizen dishwasher with dedicated Bixby buttons that sells data to marketing agencies and will irreparably break within a few years.
They want to win. They just can't due to incompetence. If it were just to showcase what Android can be, they would have just kept the cheaper Android One or Nexus programs instead of going full Pixel.