While I recognize that what you describe is a correct way to go about lawyering, it’s also the reason why the justice system is now a pay-to-play operation and completely inaccessible to anyone without indefinite sums to throw at it.
Rule 11 speaks to that problem.
A more universal “loser pays” system exists in many states but needs to be much more widely enforced.