Agreeable_ Sounds like a faulty charger or USB-C port on the phone, this has happened to a few of my pixels. Are you using a google pixel brick and the USB-C cable that shipped with the phone?
Google usually RMA's without much fuss if it's the device's port, just make sure to reflash stock image before you send it back. Wireless charging should be safe, biggest pain is backing up wirelessly if the port up and dies.