If there were distributions to the beneficiary, the beneficiary pays the taxes. You don't get to choose.