Attempting to circumvent anti discrimination laws by documenting and firing over technical violations only for the class you aren't allowed to discriminate against doesn't improve the legal situation vs simply discriminating more straightforwardly and firing without cause. Firing for cause rather than without can avoid severance payout though.
In theory but most plaintiffs employment lawyers (working on contingency) aren’t going to invest that much time and money for a run of the mill anti discrimination lawsuit.
This has absolutely nothing to do with anti discrimination law.