Dividends are cleaner and affect the price in well understood ways: you set a date for the elegibility, and if you bought before that you get the dividend, if you buy after you don't.
Stock buybacks are less transparent (you don't buy them all at once).