I'm all for protecting kids from facebook/insta/snap/etc, they have love hate relationships with all of those, but YT is a bridge too far, is's more a knowledge sharing platform than a social network.
Then it can separate the two separate components easily to satisfy whatever the law is. If it can’t then it is social media. A lot of YouTube is not knowledge sharing unless you view MrBeast as a sharer of knowledge.
I think the personalised content and advertising puts it into the same category. At least, I think it has the same problematic incentives.
If you primarily choose to watch educational videos sure, but YouTube can give you just as much brainrot as TikTok, depending on what the recommendation engine decides you might like.