Mr. Cruise, I hate you but damn you know what you're doing

I hate to it it but I decided to watch this movie for one simple reason: I saw a tik tok that suggested 4 movies on the theme of "teacher's pet" (it's 1%, if not less, of the plot).
Moving on to the movie, I don't understand why it is so underrated: beautiful colors, interesting plot, surprising ending and an interesting final monologue. (Cillian Murphy is also in it, what more could a person want?)