I'm not saying that police intentionally pin a crime on somebody that they know is innocent. However, the reasons for their initial choice of suspect are often spurious (policeman's "hunch", relative etc) and they typically then focus on building a case against this suspect and ignore any evidence that might point elsewhere.
This is what I want to focus on for the first topic (on early stages of investigation), but I explain this in terms of confirmation bias and other related cognitive factors. Obviously there are wider background issues which you and Nessie and others point out (time pressure, organisational structure, career success, public approval etc). However, if the police are not setting out to intentionally frame the wrong person, then they are not fully aware of how these factors impact their evidence-gathering and decision-making processes.
In the case of forensic examiners the biases affect perceptual processes, which is a bit easier to get a handle on as there is a nice body of research on the topic.
If you look at Itiel Dror's presentation to the NCFS on the link below, about 13.10 he refers to an example where a fingerprint examiner is apparently exhorted to return the 'correct' result in a case involving a black suspect and white victim. This could be interpreted I think as either outright dishonesty (just say it's the guy) or simply urging the examiner to make every effort to correctly detect a match which is assumed to exist. Some might think that if the examiner adopts the latter interpretation then the irrelevant information doesn't affect judgment, because they see bias as an issue of integrity (bias involves bad intentions). But what the literature on contextual bias shows is that if the task involves any component of subjective judgment (even at a very basic level of perceptual judgment) then the examiner can't simply choose to disregard the contextual information. They will actually see the stimulus differently.
https://www.youtube.com/watch?v=hNaljIMK_hY
In the case of fingerprints I have found that people can actually see this as a case of pattern recognition, because you can break down the fingerprint pattern and show it as a case of perceptual matching (where there is already a large literature on context effects). With the DNA studies people tend to be more shocked because they didn't realise that some types of DNA examination involve subjective judgement. That belief then obviously feeds back into the jury decision topic and the impact of different types of evidence on decisions.
A classic case is that of Corryn Rayney who's body was found buried in King's Park in Perth. The police immediately decided that her husband Lloyd was the culprit. Why? Because their marriage was on the rocks (and husbands always do it, don't they?). They couldn't come up with a reasonable theory as to how Lloyd Rayney killed his wife but that didn't stop them taking the case to trial.
During the trial it was made aware that improper chain of custody issues meant that it couldn't be ruled out that some of the evidence may have been planted. Nevertheless, none of that stopped the police appealing the judge's "not guilty" verdict (a verdict which was upheld on appeal).
I mentioned the Claremont murders and wrongful identification of Lance Williams as a key suspect, which lead to his being placed under intense surveillance for years. What really struck me is that there was no justification for that level of suspicion in the first place; although at the time like most people I just assumed the police must have some good reasons. He was socially awkward and had some odd personality characteristics causing his behaviour to be perceived as 'creepy'. He offered a lift to an undercover policewoman and although he dropped her off where she wanted to go and didn't assault her, this was apparently sufficient to immediately suspect him of a string of serial abductions, rapes and murders.
When he was placed under surveillance the crime stopped, which of course confirmed suspicions. There were several interesting features, including dubious personality profiling, and apparent failure of a polygraph (which of course was not admissible as evidence in Australia but nevertheless probably contributed to the tunnel vision). Even the fact that he stated in an interview that he wasn't angry because he knew the police were just doing their job was used against him, because an innocent person would have been angry! Although it didn't actually lead to wrongful conviction I might try to use it as an example because it illustrates relationships between confirmation bias, initial suspicions and dubious evidence. I'll have a look at the Rayney case you mentioned too.