Prosecutors have absolute immunity for their actions in office, and they also decide whether or not to charge the police on the rare chance that a case makes it past the police's own "internal investigation." In the grand scheme of things, the DA is dependent on the police and it's not common for a prosecutor to survive a loss of confidence by them.