Based on your financial expertise, provide your response or viewpoint on the given financial question or topic. The response format is open.

Is it better to miss the dividend and buy the undervalued stock?
I guess the answer lies in your tax jurisdiction (different countries tax capital gains and income differently) and your particular tax situation. If the price of the stock goes up or down between when you buy and sell then this counts for tax purposes as a capital gain or loss. If you receive a dividend then this counts as income.  So, for instance, if you pay tax on income but not on capital gains (or perhaps at a lower rate on capital gains) then it would pay you to sell immediately before the stock goes ex-dividend and buy back immediately after thereby making a capital gain instead of receiving income.