It's not the defense's job to throw a case which "probably" is guilty.
He doesn't have to "throw" it. If he has a shred of morality, he tells the judge that he cannot continue as attorney, on ethical and moral grounds.
But of course, he wouldn't get paid and wouldn't get face-time in front of the camera if he did that, would he?