The difference between a court and a contract like that is that the court is impartial and has a clear bar of criminality ("innocent until proven guilty" to some standard of proof), whereas it's always in the company's interest to fire you at a mere accusation of a potential crime (or non-criminal wrongdoing)...
Which is why, when you're selling a company for hundreds of millions of dollars in unvested stock, you don't sign a deal where the buyer can fire you for "mere accusations of a potential crime". Uber lost the lawsuit with Google and had to pay a quarter of a billion dollars. I'm sure their contract said something like "if you have materially misrepresented information to us that results in us getting sued for a quarter of a billion dollars, we can fire you".