ANSWER:
No, this is not permissible.
She must fight and resist with all her might even if this leads her to be killed but not to kill herself.
Women must take self defence classes, not go alone to unsafe places and always commute in groups, always be properly dressed in islamic hijab when going out and keep pepper spray etc for self defence and always make dua to Allah for their safety.
https://islamqa.info/en/answers/144586/is-it-permissible-for-a-woman-who-fears-that-she-will-be-raped-or-one-who-has-been-raped-to-kill-herself