I just remembered this from a book I read last year. It's not exactly the scenario, but the gist of what happened is the same.
So the protagonist and her two love interests are supposed to sneak in this highly guarded government facility to find something shady about it, take some video and picture evidence to broadcast it on TV, and leave.
So, theoretically, if you're sneaking in a place where getting caught WILL GET YOU JAILED AND/OR KILLED, you would be smart and stay quiet, right?
Well, the protagonist and her two love interests are hiding from some guards and then they start.... arguing? What doesn't help is that it's about the protagonist's love life and which guy she should end up with? Is it really the time for this conversation?
The protagonist, being the kickbutt main character she is, does not try to silence them, she joins in the argument, saying something like "well, maybe you guys should stop talking about me like i'm not here!" Obviously this gets them caught and one of the love interests get killed as a result.
Yes. One of the guys literally could have lived if they didn't have an argument in a hidden closet about the 14-year old girl's love life. (did i mention the protag is 14 years old, and incredibly insufferable?)
By the way, I hate or have no opinion on every character in that book except for the protag's robot butler and maybe one of the LI's mother.