If you put your money into taxable account,
as long as you keep your stock for more than 1 year ( long term investment), your tax rate for the capital gain is 15% ( if your highest income tax rate is >15%).
If you put your money into 401K, your income tax rate could be 25% (the highest part of your income.)