The only extant Android phone with superior camera hardware is probably the Huawei P20 Pro which has insane low light performance for a smartphone and makes up for middling software with a large bump in image sensor hardware. The Pixel 2's software is good enough to subjectively push it ahead of all iPhones until the recent XS/XR where I think Smart HDR and an increase to an equal sensor size has just about tied with it.