Which law are you breaking if you build no housing whatsoever?
Notice that there are many cases of this where that kind of outcome is what you want, e.g. if there is a law against operating e-bikes above 20 MPH and a law against going below 40 MPH on the freeway and the de facto result is "no e-bikes on the freeway" then that's a pretty reasonable outcome.