As per Cortana’s calculation and summary here, max out your contributions if you withdraw it in the next 10 years or less, otherwise go minimum contributions and invest yourself. Don’t choose the middle ground, as it’s the worst of both worlds.
Edit: number of years are highly dependent on your marginal tax rate, your pension fund’s performance, and the stock market performance.