Marques Brownlee has a great commentary on smartphone DxOMark ratings (it’s a YouTube video). The MKBHD video explains how these ratings are calculated (it’s kind of a black box), and what you should look for to find the right smartphone for you based on what type of photos you like to take.
The highest DxOMark-rated Pixel 2 might not be the best smartphone for you, depending on what camera feature you think is most important. If you’re into portraits the best smartphone according Brownlee, based on zoom and bokeh sub-ratings on DxOMark, is the Samsung Galaxy Note 8. Definitely check out the video; you’ll learn a lot about DxOMark. I know I did.