How to minimize or reduce taxes on RMDs

Is there a way or tool to optimize withdrawals from taxable accounts and retirement accounts to minimize taxes on RMDs?