Also chiming in with a similar issue. I've got a stock Pixel 2, no unlocked bootloader or anything else. Not a Verizon model, purchased from Google.
About a week ago I noticed that autorotate wasn't working anymore. Played around for a while and couldn't find a solution. Downloaded a sensor...