What would a lawyer do if their client refused to plead guilty, and the case was absolutely hopeless?

Like is there was absolutely no possible logical way to argue their innocence?
19 answers 19