Where you put retirement money matters nearly as much as how much you put in, because the accounts have very different tax treatment. A widely used priority order handles this without requiring you to model each one.
Start with the 401(k) up to the full employer match — that is an immediate guaranteed return of 50% or 100% depending on the formula, and nothing else competes. Next, if you have a high-deductible health plan, the HSA: it is deductible going in, grows untaxed, and comes out tax-free for qualified medical expenses, which is a combination no other account offers. Then an IRA, where you control the investment menu and the fees. Then back to the 401(k) up to the annual limit. Taxable brokerage last.