I don’t know how to phrase that title but when a character is written a certain way and then they do something outrageously out of character and you, the viewer, are supposed to just swallow it.
Eg. Sky Mangel in Neighbours becoming a cop. Fuck offffffff would Sky ever become a cop.
So many TV shows rely on this when written week-to-week, don’t they?
Seem to recall there’s a TV Tropes entry called The Idiot Stick or something dedicated to those times a character is just making the worst choices for that week’s plot.