She stared back at the castle and resisted the urge to flinch. Instead, she broke through her mask of charm and made an obscene gesture at the palace.
You can't resist the urge to flinch, it is an immediate, involuntary reaction. Also, "mask of charm" is an awful and confusing description.