> If the company does poorly, the employees with ESPP will lose, and get their money back at a reduced rate, which is great for the company, effectively having to pay less payroll if things are going poorly.
This doesn't match my experience. I've obviously not worked at every country on earth/in the US but the ESPP programs I have used have always been a 15% discount on the low point of either the start or end of the ESPP period. e.g. it's a near guaranteed 15% gain (obviously stock market so no such thing as a real guarantee[1]) because even if the stock price has dropped, because you're still getting the stock at a discount on the reduced price. Assuming you have no reason to believe there's a chance of a sudden 15% (or whatever) stock price drop, your employer is publicly traded (and has trade volume), and they are doing "vs lowest price", ESPP is one of the lowest risk ways of getting a 15% gain on your funds.
[1] e.g. because stock sales/purchases are still inexplicably not instantaneous it's conceivable something terrible could happen in the multiday period between purchasing your shares at a discount, and being able to sell them.