That depends a whole lot on your tax jurisdiction, your other income and your investment strategy.
I suppose there could exist a jurisdiction where dividends are taxed less than capital gains. I would be curious to know if there are any.
ASX dividend stocks are popular with retirees in particular because the dividends are fully franked, meaning you get a credit for the tax already paid on the dividends by the company.
If you’re in a low enough tax bracket, this can turn into a tax refund if the tax the company paid exceeds your own personal tax liability.