Well, my wife had a S7 for a long time, and hated the camera pretty much the entire time. I have tons of comparison shots with the S7 and S7E and my 6P and Samsung chewed up photos... I don't think they managed to handle the dual pixel sensor properly... Remember that each pixel is actual to photo diodes that team up when it's picture taking time... You can almost view it as a oversampled 24mp camera with 0.7 micron pixels.
Now, the pixel 2 utilizes the same sensor family, but they also have the luxury of having, by a wide margin, the best photo processing system going... The V30 took much better pictures with the Google camera than LG's... They still weren't on par... But it goes to show that hardware is almost inconsequential when it comes to mobile photography at this point.