The dismissal of Deviant was inappropriate given that the case hasn't reached discovery yet. The dismissal was granted based on a substantive evaluation of the Defendant's assertions which is inappropriate at this early procedural stage of the case. (see e.g. page 10 where the judge evaluates the "plausibility" of alleged facts, and page 12 where he says "I am not convinced" about the plaintiff's theory, even though in a MTD this is not a determination he is supposed to make pre-discovery).
Moreover, even if plaintiff's language was "unclear", the appropriate procedure is to require them to amend their claim and dismiss Deviant if the plaintiff does not amend, not to dismiss a defendant and give the plaintiff leave to amend their claims.
With respect to Midjourney, the Plaintiffs failed to plead sufficient factual allegations to support their claim, so that dismissal was appropriate. (Pre-discovery, it's okay for the alleged/pleaded "facts" to be wrong, you just need to allege sufficient "facts" that you have a legal basis for a court case. Note that "facts" in the MTD context doesn't mean real world facts, it is a legal term of art that actually refers to an allegation of a fact that will later be determined to be true or false at the actual legal proceeding on the merits.)