Actually, no, the lab tests are standard with all products of all large companies, and they are usually conducted in extreme conditions, like 100% moisture at 80-90C oven for 48 hours and highly concentrated salt spray kind of extreme.
You bring up the example of Google Pixel, yeah, because it's Google, they are software people who think they can just cheap out on hardware and save a couple of cents by making it up in software. Look at the Nexus 5X and 6P, both devices had an absurd amount of quality control issues compared to the other products made by the manufacturers, and the only factor in common between them is Google.