This but it is in general better to pay for a course at Udemy. You get your money back when you haven't learned anything and those teachers are paid by people like you. They have skin in the game. Youtubers get paid by the minute so they are maximizing your eyeball time.
Yeah, even though the platform has some questionable practices the overall content and the depth of the courses, especially the top ones are well worth the money (since the course will be on sale for 80-90% all the time )
You are being sold in a different way. A successful course is one where you haven't requested a refund. The courses are designed to create little friction and in the end leaving you with a feeling that you now know 'x' and you are a 'x' programmer now.
In reality you took an easy guided path. Without friction you may not have learned all that much.