Max out IRA or 401k?

I'm a 24-year-old who just started my first corporate job. My employer offers a 6% 401k match, but only after I've been with the company for two years. Since I'm new, would it be more sensible to max out my IRA instead of contributing to my 401k until I reach the two-year mark?