This week, Tesla $TSLA again found itself in the center of public scrutiny—this time due to a high-profile racial discrimination lawsuit filed by a former employee at its Fremont factory in California. Despite the negative headlines, an unexpected resolution was swiftly reached: Tesla and former worker Rayna Pierce agreed to settle the matter out of court.