If you own a stock or fund that pays dividends, you have to decide whether to pocket the cash or reinvest the dividends.