The law obviously isn't as simple as that. If I agree with an electrician that I will pay him or her to install a switch that we are both aware is unsafe and against building codes, that is still illegal.
(The fact that AT&T's ad-supported plan is not a better deal than Google's fiber plan is not really material. It isn't generally illegal to have an inferior product or to charge more than your competitors for the same goods.)