Civil lawsuits are a means of dealing with a problem, mainly by recovering losses (via damages) but also sometimes by imposing other legal compulsion (equitable relief).
“how does filing a lawsuit against this party improve my expected resolution to whatever problem motivated the lawsuit, and is that worth the added cost of pursuing that party” should be part of your calculus. That's not to say the merits of the case don't figure in, but a meritorious case against someone who even the best possible outcome won't do anything to improve your condition is just a way to waste your money and time, and the courts.