The personal finance reddit goes like, fund it up to the match is basic, but if you can, max it.
You reduce your taxable income and the money doesn't pay capital gains when you pull it out.
You do pay income tax on it when you pull it out though. Whether or not you come out ahead depends at least partially on your marginal tax rates before and after retirement.