Just took Intro to Mathematical Thinking from Stanford on coursera, it was fantastic.
Coursera -> Helped me to graduate
Udemy -> Helped me to get useful skills quicker and make money
Generally, looking at the number of students enrolled and the rating of a course gives a good idea on quality.
You also find the same in, for example, college. Where a tutor may be able to get you up to speed faster by 'debugging' your learning.
Udemy - professionals looking to make money outside of their day job by teaching, with varying levels of competency at either their profession or the ability to teach.
You'll get more "practical" or "current" topics out of Udemy, but better education out of Coursera.
Coursera is very bad at keeping their courses live though. Udemy is much better at this.
I would say the distribution is way wider. Yes, there are top courses by top universities but those are sadly a minority. There are lots upon lots of mediocre courses either by big or small universities and the worst offenders the programs created by vendors (Google, IBM, etc) which are nothing but a barely disguised way to push their platforms. Going directly to the university site and you will find the real deal, last term course which usually will be significantly better.
One bonus with the Google/Facebook/whatever approach is that you sometimes get academics who became in-house researchers to teach their courses. This was more common in the early days and pretty much what you get out of Udacity. It's true that they train to the platform but there really isn't another way to get e.g. Sebastian Thrun out there anymore. Another view may take that as a broken window, however.
I recently took a course on Flutter from Udemy and was pretty disappointed. Not with the platform per se, but with the entire _idea_ of video courses on programmatic concepts. I only took it because for Flutter most of the resources are videos, and not books or articles.
I find that video courses do not invite the same level of interactivity I feel when I learn from, say, a textbook. There are also of course a horrible reference as one has to dig in to find a specific video, then find the time within that video to learn a concept, while with a book I can merely do a text search.
Videos also are frustrating in the fact that one cannot fluidly control the pace. One can pause and resume and increase from 1x to 2x and back again, sure, but with text I can merely... stop reading to code something up and then when I am ready to proceed I can... resume reading. I hate fiddling with a mouse or a keyboard to pause/resume/pause/resume/rewind, etc.
Needless to say I will not be taking a video course for anything programming related again.