I think one thing to keep in mind here is that, while everything you said is true for most ordinary defendants, Sam's parents are both highly regarded Stanford law professors. They have both been spotted in the Bahamas with him, and are certainly giving him counsel here, not to mention any whiteshoe legal team he's hired. Sam may be a lot of things, but he's not an idiot. There is no doubt that what he's doing is part of a calculated strategy, and it is a virtual certainty that that strategy has been approved of by legally serious elements of his defense team.
Whether or not it works time will tell, but it's a mistake to think that he's just a fool running his mouth.