Lawyers, well, they all have the ability to lie with their eyes open, and in court, as long as you're not blatantly spouting nonsense, you'll usually be fine.
Take the notorious Yao Jiaxin case from years past, for instance; there were all sorts of defense arguments, and that's fine—they could defend from various angles.
So when does it become a problem? It's when you've told a lie and then used false evidence to support your point. That's not just a problem; it's a huge one.
Ultimately, if you talk nonsense in court without evidence, the judge will certainly not accept it, and if you talk too much, the judge might even tell you to shut up. It's essentially harmless.
But using false evidence to commit perjury could cause unexpected turns in the trial, leading to wrongful convictions, and that's why perjury can land you in jail, while lawyers telling tall tales go unpunished.
Therefore, seasoned lawyers simply don't bother with such talk.