This is misinformation, and this particular strand of it seems to never die. There is an issue with unofficial 3rd party docks for Nintendo Switch causing issues. USB-C PD chargers work fine.
I had to buy a Nintendo USB C cable to use for my switch. None of the ones I got with my Pixel or other USB C devices worked. Granted, I only had 5 other cables to test at the time.
The only unofficial thing I used was the cable itself. Once I bought their cable, the switch charges on everything I connect it to now.
Not quite the same issue as burning up my switch (as of now), but issues nonetheless.