Zainab Ansari case (2018) is a clear counter-example. 7-year-old Zainab was raped, tortured and murdered. Imran Ali was identified through mass DNA screening of over 1,000 local men — his DNA matched the crime scene and several other similar child victims in Kasur.
He was sentenced to death on four counts, including a specific death sentence under Section 376 PPC for the rape itself (plus separate death sentences for kidnapping, murder, and terrorism). The sentence was upheld by higher courts and carried out in 2018.
So in Pakistan, DNA evidence has already led to capital punishment specifically for child rape in high-profile cases, not “just for the murder.
This is already happening in many countries, like Pakistan. Five years ago, a nine-year-old girl was raped here. The criminal killed her, but one of her hairs was left on his jacket, and DNA from that hair identified him. He was sentenced to death, which he deserved. So your argument doesn't hold up in the real world.