The difference between the two is not just taxes. The bigger difference is the accretion (dilution) that the company gets from buying shares below (above) intrinsic value. A dividend of $1.00 is worth $1.00-- buying a share that is really worth $50.00 for $25.00 is more beneficial for the remaining shareholders.
> The bigger difference is the accretion (dilution) that the company gets from buying shares below (above) intrinsic value.
Sure, if you believe your stock is overvalued raise cash and retire debt, and if you believe it's undervalued take on debt and buy back shares. That's orthogonal to the issue of "if I want to give back 100$ to my shareholders what's the best way to go about it?".