It’s funny because the rich don’t pay taxes.
Most tax programs which apply to capital gains apply to the sell and exchange of the stock. Dividends are also taxed (at least here in the states). So yes, you get taxed no matter what you do unless it’s a net loss
They pay 42% of INCOME taxes, which are only 40% of the annual federal tax receipts. Which means their income tax only amounts to about 17% of the overall tax receipts. Their FICA contributions are capped and they pay no FICA on anything over about $140,000. FICA tax accounts for 25% of overall federal tax receipts. The majority of remaining tax receipts are consumption taxes and property taxes, both of which are regressive and impact lower income citizens more.
https://taxfoundation.org/data/all/federal/us-tax-revenue-by-tax-type-2020/