I think there are also opportunities to have a case dismissed before going into the costly parts of a trial like discovery. The judge can dismiss it just based on the merits of the suit, where they just assume all the alleged facts will turn out to be true.
(I am so not a lawyer, would love if a lawyer could correct me)
(I am so not a lawyer, would love if a lawyer could correct me)