Legal Thriller where the Protagonist defends someone actually guilty
In most legal thrillers the lawyer either defends people that are innocent or criminals dragged into crime and looking for a second chance.
In cases where the client turns out to be guilty the lawyer figures this out later into the story and can't do much at that point.
What I'm looking for is a book where the lawyer knows the defendant is (probably) guilty and still defends them (presumably for money).
I've been reading a lot of Connely books lately and I enjoyed reading the parts where the lawyers that opposed Bosch gave people a hard time in court. Like Honey >!bribing Edgar and learning Bosch's past!< or Reason Fowkes >!destroying the witness on the movie director case!<. What made it fun was reading the reactions of other people involved in the case. They were kinda seething.