Should I Contribute to My 401(k) Employer Match If I Don’t Plan to Stay?

Hey MoneyGuy community,

In the near future I am going to be starting a new grad position, and I am trying to decide whether to contribute to my employer's 401(k) match. The company has a 3-year vesting schedule, and I don't plan to stay that long since the starting salary is relatively low for the field.

I'm aiming to make a job move to a higher-paying area within 12-18 months of working at my new job once when I have 1+ years of experience under my belt where I reasonably could expect a 30-35% increase in compensation.

I am considering using the savings I would obtain by not contributing to the 401(k) to have a frothy savings account so that I can afford whatever relocation expenses I would incur by moving to a higher paying location.

I understand that there is an opportunity cost by not contributing to my 401(k), but I believe it is low since I don't plan on obtaining the match by staying 3 years and in the beginning of my savings journey my savings rate is more important than rate of return. In addition, my new income is low enough where any deductions I would get by contributing to the 401(k) would be quite small.

Is this FOO heresy? Does this sound like a good idea?