You still pay capital gains tax when you sell the shares. Buybacks don't let investors avoid taxable events, they just allow investors to control when the taxable event happens.
Whereas with a dividend, you pay tax immediately when the dividend is issued.
Whereas with a dividend, you pay tax immediately when the dividend is issued.