This is an interesting video. Marques Brownlee seeded a bunch of cameras and did testing on Instagram and Twitter, gaining hundreds of thousands of votes, and the results included upsets like a Blackberry phone besting the flagship iPhone XS, and the Pixel 3 getting beaten by the P20 Pro.
Brownlee makes a very useful observation that a lot of this has to do with smartphone screen sizes and web compression removing many of the subtle details for comparison, with voters trending towards better exposed or brighter images overall. So too must the confounding factors of the screens people were voting on be considered. This is a terrible scientific test but nonetheless excellent for illustrating how much beyond specs goes into our gut reactions to pictures. The main takeaway seems to be that if you are just taking photos in general conditions and only for social media, virtually any midrange or better phone these days fulfills the “good enough” requirement.