This almost never happens in real life because criminal defense attorneys know that whatever the suspect says will later come back to bite him or her. When the police warn a suspect that "anything you say can and will be used against you in a court of law," they mean it. And defense attorneys know that.
Generally, if a suspect agrees to talk to the police, it is before he has a lawyer. Police rarely even try to talk to someone with a lawyer because they know the answer is likely to be, "no."
Dr. Conrad Murray, who is on trial in Michael Jackson's death, and his attorneys did not follow this general rule. Two days after Michael Jackson's death, when there was wide speculation in the media that Dr. Murray was hiding and may have been involved, Dr. Murray and his attorneys agreed to speak to the police.
The prosecution's opening statement today capitalized on Dr. Murray's decision to speak to the police. The prosecutor played clips of the recorded interview for the jury. He showed quotes from the interview on a screen. The prosecutor used Dr. Murray's own words against him to show his lack of credibility.
The lesson here is that it is almost never a good idea for a potential suspect to talk to the police, no matter how often they do so on TV.