In Charles Dickens' "A Tale of Two Cities" Book 2 Chapter 3 'A Disappointment', a man is on trial. He has been identified by an eyewitness who testifies under oath that he saw the defendant commit the crime and identifies the defendant in court by sight. The defense lawyer produces another man in court that looks almost exactly like the defendant, which undercuts the eyewitness' testimony. The defendant is acquitted.
In a modern court, if the defendant has been identified by a photo or in-person lineup or other such method, could informing the prosecution of the defense's intent to produce a person who looks exactly (enough) like the defendant, and doing so per proper procedure in court, defend successfully against the identification evidence? What if the identification has been made by watching video, such as a security camera or bystander phone recording?
(My question does not include the surprise production of the lookalike. I have read that surprise production of evidence, at least in USA courts, is not allowed, and that evidence has to be given to the other side beforehand. So standing up a lookalike unexpectedly in the courtroom would probably not be allowed.
This question Can a lawyer subject the court to a (temporary) ruse for a legitimate purpose? is similar but deals with faking out the court by sitting the lookalike as the defendant until the identification testimony is completed, then revealing the lookalike status by surprise.)
No jurisdiction restrictions: I'd be curious about any system of law's view, though I am most familiar with USA court systems.