For me it was "want camera", and I chose the top SKU (P8 Pro) because I wanted maximum camera.

"Buy a camera" doesn't work because (a) I don't want to pocket two devices, (b) most point-and-shoot dedicated cameras that are actually better are more bulky, too, (c) even entry-level good digital cameras are >$500 (e.g. a ZV-1F or something), so even the combo with a midrange phone often comes out more expensive and (d) a seperate camera makes it really annoying to send photos anywhere on the go.

That said: I came away fairly unhappy with the Pixel 8 Pro camera, which my book has a too editorialized post-processing look that I simply don't like. In retrospect, I think I should have gone for the Xperia in that generation, which appears to have been the last phone with high-end smartphone camera gear that took neutral-looking shots. My S21, despite having a worse sensor and optics, took subjectively nicer photos.

I've now updated my definition of "maximum phone camera" to be more choosy ...