My problem if a company paid me $3.5 million not to leave for its competition would be that I'd quit the day the money was in my bank account anyway. I wouldn't go work for the competition, but I'd be starting my own company.
I could do a hell of a lot with $3.5M, and probably make more than I ever would being an engineer for Google.