After the trial/probation period where this notice period is not in effect, when I know what the employment is like, I'd much rather get a 13% higher salary and, should I choose to quit, wrap things up properly and do the job for 2-3 more months. (The notice period is not as long as we schedule ahead for: with 2 months' notice, we can find a good freelancer and get the paperwork done without time pressure, or the client can still find another firm in the worst case.)
Since I was fine with doing this job for years now, those months seem insignificant for the benefits that go both ways.