I like Sidney Lumet’s breakdown:
In drama, the characters should determine the story.
In melodrama, the story determines the characters. Melodrama makes the story line its highest priority, and everything is subservient to story.
For me, farce is the comic equivalent of melodrama and comedy the comic equivalent of drama.