OP was probably saved by that final exam score. Judging from the opening from the text, it seems they were not putting much effort into the class. Sometimes a teacher needs to be stupid for a student to realize they can be smarter.
Yeah, that was me in school. Never did homework, but aced the tests. A few teachers made me take tests sitting next to them because they thought I was cheating.
The fine line between being put on a podium for being gifted (and thus getting bullied), being severely mistrusted because your genius shows up inconsistently (and not getting diagnosed ADHD), and getting victimized by a teacher because you unintentionally brought light on their own mediocrity (because you're autistic).
Maybe if they took 30 seconds to explain to me why I still needed trivial busywork instead of just failing me when I got 100 on every test because the material wasn't at all challenging, I would have done better 🤷🏼♀️
Fucking people over when they're objectively right definitely does not improve engagement or effort.