From the perspective of an investor this is spot on but on a societal scale it would be better if capital gains were taxed more than dividends. Dividends have to be paid from the income a company generates, meanwhile the stock price can be influenced by almost anything and it doesn't actually require the company to generate more value.
Ya, I think which way the rules should be here is a complicated question, but it certainly shouldn't be the case that we have two arbitrarily different taxation schemes.