If they hand out cash, that means the company is now worth $1B, and each shareholder has $100k more in cash. But their shares are now only worth $1k each, instead of the $1.1k they were worth before. The shareholder's net worth is unchanged.
If they hand out shares, there are now 1.1M shares in the company, and each is worth $1k, the same value per share as with the cash dividend. Each shareholder has an extra 100 shares, and their net worth is still unchanged from before the dividend.
So the key thing is that if they paid the dividend in cash, the overall net worth of the company goes down -- so everything balances out between shares and cash.
Of course, for a publicly-traded company the value of the stock doesn't necessarily match the current net worth of the company, and the share price fluctuates. So you'll need to work out for yourself whether you'd prefer to have the stock (with the capital gains liability) or the dividend (with its tax liability), possibly based on how long you intend to hold the stock.