In practice though if the benefiting company doesn't get their way there are plenty of social and financial penalties they can levy: you won't get any severance, unemployment, or possibly even a referral. You may be ostracized by your former team, mentors, and management. You may find your access rights and equipment revoked before you can collect/remove any personal artifacts from them. You may have less productive conversations with HR/legal afterwards.