Nah, he needs a STEM rec - but that can be from a science teacher, too - doesn’t just have to be math. I’m assuming that he’s taking Calc BC, or AP Stats next year? An AP science? Either of those would work.
Meanwhile, the more important thing is the teachable moment. I totally get your son (but then again, I’m probably on the ASD spectrum). The ability to get peers and supervisors to like you is very important, just as important as doing fantastic work. Developing the capacity to view the situation from the other person’s side is crucial for him. Maybe you, or your spouse, or another trusted adult can help him to see that this is the consequence of his having disdained the teacher’s effort to help the class, in general, by choosing helpful homework assignments for the majority of the class, even though clearly he didn’t need them. If he really had been under huge time pressure with his other classes and ECs, and he was consistently getting high grades on tests without doing the homework, he should have at least gone to the teacher and asked to be excused from what was for him, unnecessary busy work as long as he continued to ace the exams.