Only a man can rape in the eyes of the law IIRC
I was thinking more along the lines of forced violation. Or being an accessory to rape. Which I’m pretty sure there have been a few convictions for over the years.
Back to the OP. There is no such thing as 100% when it comes to DNA evidence. Plus as a few of the previous posters noted, rapists have a psychological fixation with power and domination. Removing or disabling part of there anatomy with not change this.