High school teacher here. To my understanding, for AP courses, in the process of college admission, AP exam score trumps the high school grade. To transfer credits to college, AP exam score still trumps the high school grade (if the course is dual credit carrying college credit).