Unpopular opinion: Lawyer isn't a dishonest profession. A lawyer's responsibility is not to state their opinion on guilt or innocence, but to state their opinion on what one must believe to justify believing guilt or innocence. This, in turn, is grounded in the idea that every crime deserves justice and every defendant deserves a fair defense. So, for example, the defense could believe their client is guilty, yet defend their client in court in good conscience, because they aren't saying they think their client is innocent, just that they see a way someone could reasonably think that, amirite?