Study Gittin folio 90A with parallel Hebrew-English text, traditional commentary, and modern study tools. Free access to Babylonian Talmud online.
And the halakha is that she is permitted to both of them.
Mishnah: Beit Shammai say: A man may not divorce his wife unless he finds out about her having engaged in a matter of forbidden sex [devar erva], i.e., she committed adultery or is suspected of doing so, as it is stated: “Because he has found some unseemly matter [ervat davar] in her, and he writ
And Beit Hillel say: He may divorce her even due to a minor issue, e.g., because she burned or over-salted his dish, as it is stated: “Because he has found some unseemly matter in her,” meaning that he found any type of shortcoming in her.
R' Akiva says: He may divorce her even if he found another woman who is better looking than her and wishes to marry her, as it is stated in that verse: “And it comes to pass, if she finds no favor in his eyes” (Deuteronomy 24:1).
Talmud: It is taught in a baraita that Beit Hillel said to Beit Shammai: But isn’t the word “matter” already stated in the verse, indicating that any disadvantageous matter is a legitimate reason for divorce? Beit Shammai said to them: But isn’t the word “unseemly [ervat]” already stated?