In the case of a stock dividend, the record date and the exdate are pretty much unimportant. Everyone will have to hold the stock through the paydate to collect the dividend as stock dividends trade with a "due bill". In other words, if you sell your stock before the divi is paid, whomever buys it from you will also buy the rights to the distribution
Sorry, not true. Ex date is all that is important. You can buy 2 seconds before the close the day prior to ex-date and sell at the open on ex-date and get the dividend regardless of when record date and pay date are.