The difference between the two is huge. In one case you contribute tax deferred and you pay tax on everything (your contributions plus the gains). In the other case your contribution is taxed but the gains are tax free.
401k's are not tax savings vehicles they are tax deferral vehicles.