Sorry to hear you had that experience. I've had the opposite with the Pixel XL. Completely bug free, has worked flawlessly (I've had it approximately just over a month. In fact, and this is the first time I've ever been able to say this: it makes my iPhone 7 Plus look like an old school Android-phone-buggy mess.
I also don't agree that the price isn't justified. It's far more stable than my iPhone. I use my phone for work, so I take it's function very seriously. The Pixel is the iPhone 7' Plus equal, and better in some areas.
Take this from someone who has used both platforms but generally defaulted back to iOS as "home." The Pixel XL is the first Android phone in my long history of using this stuff that's creating a scenario in which my iPhone gathers dust in a draw.