There are very few countries where that idea is as much a force as it is in the US–it's theoretically possible, but courts often shy away from applying it.
I think it's a testament to the integrity of the US court system that they routinely let people off the hook, even when it is proven that they committed a serious crime. They are serving a higher goal, but they do so in the face of stiff public opposition ("The rapist got away on a technicality").
The public defenders have hundreds of clients a year and are often only able to provide each client with a day or so of attention.
If you are poor and accused of a crime odds are you are going to be found guilty. If you are rich and accused of a crime, odds are you have a good attorney who has the resources and connections to find that "technicality"
Here in NL it is very much in force and has led to some spectacular reversals in court. To the point where the police is now extra careful on how they get their evidence.