Whether the defense or prosecution made mistakes, if you're left with a reasonable doubt that the defendant is guilty (and I personally consider it the case that inept defense can cause reasonable doubt, unless the prosecution presents an airtight case - a lot of people, including most of my lawyer friends, would disagree with me there), don't vote to convict.