The only way you can compare the pixel to the GS7 is with *EXACTLY* the same shot and fixed position with EXACTLY the same bright light source position. Even moving the phone ever so slightly in your hand can be the difference between flare and no flare because it's caused by internal reflections in the lens structure. I am not doubting your experiences, but in order to make any kind of photographic/flare comparison to another phone, the comparison position and field of view has to be literally identical. You can actually see the flare on the screen if it's going to happen, so you can adjust it slightly and it should disappear if you happen to be in such a scenario. Taking roughly the same picture with multiple devices is a totally irrelevant comparison, unfortunately. If you could rig up a fixed shooting position with a tripod or similar, and have the field of view absolutely identical (I am not sure if their focal lengths are the same), it would be possible to compare flare characteristics between the two devices in that specific scenario only.
A lens hood is the first defense against lens flare on a 'real' camera, but obviously that doesn't really apply in the smartphone world. To avoid it, avoid shooting directly into bright light sources, or with bright light sources barely outside the frame. The bright light source can also be a strong reflection in the image, light bulb, etc. - not just the sun.
At the end of the day, smartphone optics aren't that advanced and the Pixel being as sharp as it is impresses me. I am not surprised at all that people can coax flare out of it relatively easy, which makes it no different really than any other smartphone at least in my experience. I have a GS6 and GS7 as well, I can get flare out of both very easily.