Would you not consider that suicide, and therefore a sin (maybe the worst)?
No, when capture means torture and desecration, fighting to the death and not accepting dishonor is no sin to a Jew. Masada is as much a part of our history as Babi Yar.