Your Pixel has a hidden auto-rotate mode that uses face detection to keep your screen oriented correctly. Here's how it works ...
That is all. I don't need a mute switch on my iPad. I don't like having to double tap and swipe and tap and double tap to lock and unlock the rotation. The hardware rotation lock switch was brilliant.