If they accidentally hired someone who sounds identical, that's not illegal. But if they intended to, even if it is a pretty poor imitation, it would be illegal because the intent to do it was there.
A court of law would be looking for things like emails about what sort of actress they were looking for, how they described that requirement, how they evaluated the candidate and selected her, and of course, how the CEO announced it alongside a movie title Scarlett starred in.