Both, ideologies fail because the logic and assumptions that are applied to the state are not applied to the operants of the state: individuals. Basically, anarchists have to assume that humans are intrinsically good while the government is systemically evil, while collectivists have to assume that humans are inherently bad while the state is systemically remedial. To put it in programming jargon, anarchists assume good in, garbage out; collectivists assume garbage in, good out. The state, though, is merely a mechanism and is neither intrinsically corrupting nor intrinsically remedial. If the effects of the state are remedial or corrupting, it is only because the people within (and in administration of) the state are remedial or corrupting.It seems that there's a third possibility - that it's possible to explain the State's frequent sub-optimum actions without looking at the people involved as evil: The Iron Law of Bureaucracy:
Pournelle's Iron Law of Bureaucracy states that in any bureaucratic organization there will be two kinds of people":The second group isn't necessarily evil, in fact most aren't evil at all. They are entirely satisfied to accept outcomes that increase the power of the organization at the expense of the citizenry. This is probably a more useful view (in a diagnostic/predictive sense) that good/evil.
First, there will be those who are devoted to the goals of the organization. Examples are dedicated classroom teachers in an educational bureaucracy, many of the engineers and launch technicians and scientists at NASA, even some agricultural scientists and advisors in the former Soviet Union collective farming administration.The Iron Law states that in every case the second group will gain and keep control of the organization. It will write the rules, and control promotions within the organization.
Secondly, there will be those dedicated to the organization itself. Examples are many of the administrators in the education system, many professors of education, many teachers union officials, much of the NASA headquarters staff, etc.