Not saying this for this topic in particular, but I find it a little disappointing that when something doesn't work instead of looking for a solution/trying to get the issue fixed, people just recommend to use something else. I read a similar post yesterday where someone said he got a problem with vlc and he "fixed" it by installing gnome-mpv.
Of course it's convenient but it doesn't help improving things. In this particular case it's a hardware problem and the after sales support is perhaps not very good but returning a machine and trying with another one is the very first thing to do. The coil whine issue is a known problem on the Dell's XPS series, a thing to try is to upgrade the BIOS to the latest version and to google for "dell xps coil whine fix". Personally I am very happy with the dell after sales support, I had horrible experiences with the asus one, but I guess this depends on the countries and on the subcontractors they are working with. At certain moments, I have a slight coil whine with my dell xps 9560, but nothing really annoying. Overall the machine quality is very good. IBM/Lenovo Thinkpads are also known to be linux very good and friendly machines. Ideally the best is to look for info before ordering the computer but most people don't really thing about it and only start looking for info when they face issues.