Lawyers for a man accused of murdering a sex worker inside her brothel have questioned evidence about her cause of death, and police investigations, in court.