It’s worse than getting an A. But it’s also one grade among 25/50/100 (depending on whether it’s a quarter/semester/final) grades on your transcript, somewhat early in you HS career. Plenty of top university admits are not 4.000 for their entire high school.
Don’t retake the class and don’t try to “explain” a bad grade unless there are true (illness, death in the family) mitigating circumstances. “I had an extremely horrible teacher” will not come across well.