> but plenty of white kids have gotten in plenty of trouble for stupid reasons too.
Of course they have. However, the authorities everywhere don't consistently flip their wigs—certainly not as badly as this—every time a student does something like bringing in this project. So the fact that they wigged out badly in this particular case probably—not certainly, but really pretty likely—does have some relation to the fact that the student just happened to be Ahmed Mohamed.
(OTOH there pretty certainly is a selection bias in the fact that this particular case is getting so much publicity. It's the social-media catnip of the perceived (and again, let's be serious here, probably partly real) discrimination that has pushed this one up the charts while others go mostly unremarked.)