Google has responded to complaints about a crackling or buzzing noise affecting some Pixel 2 owners. Apparently the fault is software-related and will be addressed in an upcoming patch.
https://www.notebookcheck.net/Google-Pixel-2-software-fix-coming-for-crackling-earpiece-issue.264214.0.html