For all the whining your going to get about the poor quality of uTubes lossy format,there is just too much awesome music there you can’t find on the mainstream services to pass them up ...
I’m not sure it’s "whining" to point out that YouTube uses lossy compressed audio, and it sounds like it. Yet there are things on YT that are worth listening to so it’s worth getting the best out of it, imo.
The best solution I found is to access YT via Roku, which I have connected to an HDMI switch that provides a separate digital audio out. That goes in to my Bryston BDA3 DAC. It can sound ok, but I’d never mistake it for real high fidelity.