You have the causal chain backwards. It is the initiator of an action who must plan their decisions to reach an optimal end. It is not the fault of a consumer for refusing to engage in a given exchange with a producer. It is the producer who must make their offers palatable. In the same way, the government, being the one levying the tax, is the entity which ultimately bears the burden of structuring its tax policy to achieve the highest return.