When it comes to resume selection, it is all about 'keywords'. Depending on the course you have taken, you will have a greater chance of selection, even if it's an online course.
During the selection process, you will be asked application-based questions relevant to your field. Your ability to answer these questions will be based on how effectively you have utilized your acquired knowledge.
Recently, I interviewed a person who had completed a course in cognitive behavior therapy from Udemy. When I asked her some application-based questions, she displayed a lack of knowledge about them.
Therefore, it doesn't matter where you obtain your knowledge from; what truly matters is how you apply it and how you respond to interview questions.