Not quite the same. The investment is much more at risk than in the bank. Not all stock is sold at a gain. Stock in a company is the same as buying a piece of property.
Uncle sugar has his hand out when you make money and slow walks deductions for losses and they can only be used against capital gains for stocks held the same period.
Short term gains are taxed as regular income. Would that make you happy?
Put your money at risk in companies and let me see how that works out and how you feel when your risk is taxed as regular income.
When you buy a Corp bond you are at risk too and the interest is ordinary tax rate