You might be thinking of SafetyNet. I'm not sure if there are any reliable ways to get root without tripping SafetyNet, but last I knew you could - on a Pixel - flash a different ROM and then relock the bootloader, and you'd be fine. Things may have changed in the last few years though.