Google will soon allow iFixit to sell replacement OEM parts for Pixel smartphones. Starting with the Pixel 2 and Pixel 2 XL, the repair initiative will include 'common Pixel repairs' like batteries, cameras and displays.
https://www.notebookcheck.net/Google-and-iFixit-announce-DIY-repair-partnership-for-Pixel-smartphones-up-to-5-years-old.613043.0.html