Well, I didnt bring it up but the other element of qualified immunity is that its purely for civil suits. So it would only show up if an officer was basically sued personally. It doesnt apply to criminal prosecution. Thats another can of worms though.
Sure, the issues there are also not particularly nuanced; prosectors rely on cops to arrest people and provide evidence for them to do their job, so they're incentivized to keep a good working relationship with them (i.e. by not prosecuting them, especially for things that end up helping them secure convictions, even if they're illegal)