Better advice might be to talk to an accountant and/or tax attorney. It's not exactly reasonable to expect someone to know enough about the tax code just from reading it.
Their answer will be “it depends, what do you want to do”
You’ll say “I don’t want to pay taxes, I heard I can pay $4000 and not pay taxes”
They'll say what I said “it depends on what you want to do and what compliance burdens you want to deal with” along with “where did you hear that, my retainer is $10,000 and hourly rates are $700 and $300 for the junior”
and you still don’t know what you want to do
RTFTaxCode and find a service provider that specializes in that part of the tax code and then come back with specific queries about how those topics work
This is more analogous to saying “go to a medical school professor and your dentist” as they are both doctors and one might be licensed to practice, when neither of them can actually help you, and your dentist says “the eye doctor specializes in this topic” but you hadn't quite figured that out yet and you really have to go to your primary care doctor first who will still be confused about whether that’s the right recommendation for you because you can’t articulate what you really want to do
But since everyone that read this far is still here, and even more frustrated, I’ll
point out that 401ks are a whole industry that is simply a reference to subsection 401(k) of the IRS’ 400 section and someone eventually noticed. There are other less used sections. 501(c)3 which you also may have heard of in passing are simply a reference to that subsection of 500 section of which there are many other less mentioned sections. All of which may be more interesting to your specific goal.