Theoretically an x billion dollar dividend results in the exact same outcome for a shareholder as an x billion dollar stock buy back. Not sure the time value of money factors in.
Dividends are not guaranteed either - companies can and do suspend dividends whenever they have cash flow or profitability problems.