I know of at least one instance in which an employee at a $BigTechCompany was put on a PIP, successfully completed the PIP, and was fired the following week anyway. Box-checking exercise indeed.
If someone successfully completed a PIP and gets fired, the company has effectively put in writing that the employee was fired for other reasons. I wonder if that would look worse in a lawsuit than not having a PIP at all.