Its my understanding that the executor is legally required to execute the will as defined by the will or instructions from the deceased.
You are at least partially wrong. The will cannot exceed the bounds of the law. Every state (that I’m aware of) has an order that expenses and debts are paid. An executor cannot choose to not pay a debt simply because the will says not to pay it.