I use NewPipe and what has helped me the most is not having to deal w/ the recommendation algorithm.
I reset my subscriptions to only be the most relevant feeds from YouTube and then I only check the subscription page. I've consciously curated the feed to be more productive and I'm much less likely to get distracted when watching videos