I agree completely. But it’s still very hard to do this. I elaborated further in an adjacent comment: https://news.ycombinator.com/item?id=50668041
Also, for the record, I don’t believe that contractors or contracting out certain work is inherently bad. Rather, misalignment, missing expertise, and misaligned incentives make it very very hard to do in an effective way. There are absolutely certain government problems where I think contracting is the right approach—just not in the way it is often done, and not as the default option.
The problem with contracting is that the same lack of domain experience that leads to the decision to hire a contractor also makes it nearly impossible for the client to evaluate the quality of contractors. So, it's very easy for such a client to get duped by the lowest bidder.