Ms Gray, a football coach from Poole, was pronounced dead at the scene. Ms Miles was taken to hospital for treatment for stab wounds to her chest and back.
The defendant, who had researched whether people would be on the beach and “hotels without CCTV”, may have wanted to feel powerful or make women afraid, the prosecutor said.
Ms Jones continued: “Perhaps he just couldn’t bear to see people engaged in a happy normal social interaction and he decided to lash out, to hurt, to butcher.”
The court heard Mr Saadi asked a lecturer at the University of Greenwich in 2023 about pleading self-defence to murder and DNA evidence.
The lecturer replied: “You’re not planning a murder, are you?”, the jury was told.
The defendant has pleaded guilty to refusing to give police access to his mobile phone, the jury was told.
The trial continues.