The theme of the podcast link below (an episode of a wonderful series on NPR called Hidden Brain) is surprise endings and plot twists. But as you listen to it I invite you to think of every moment in a film as a magic trick designed to take advantage of the audience’s cognitive preconceptions and biases. Sound design is as important an element in the trickery as visual design.
https://www.npr.org/2018/10/29/661878959/spoiler-alert-the-psychology-of-surprise-endings