Everybody complains about YouTube compression but I remember reading a shoot-out of various streaming sites, and YouTube actually did very well in preserving sound quality. And in my experience, this holds true. SoundCloud is by far the worst sounding site in my experience. It's noticeably worse than other streaming sites. It makes everything, especially treble, sound terrible. YouTube, meanwhile, is one of the least offensive sites when it comes to sound quality, and if you give it a good file, the compression they apply is more or less transparent at 480p+ resolution, which basically describes all videos made in the last 10 years.
I think people who blame YouTube for destroying sound quality don't know how to properly prepare their videos for upload. Upload a 2-channel PCM lossless encoded track, and I guarantee you, you will hear no compression artifacts. Meanwhile, if you give it a low fidelity lossy compressed file to upload, then it will compress it further and be noticeable. But that's the uploader's fault, not YouTube. Their video compression is pretty good, too.
Meanwhile, Facebook's compression algorithms are complete, utter crap. Their video, audio, and photo compression all stink.