Why it is rarely a straight trade
The question assumes taking the AP costs you the A, and for a lot of students in a lot of subjects it does not. It costs more work. Whether it costs the grade depends on the subject, the teacher, what else is on your schedule that year, and how strong you already are in it.
So the useful question is not "AP or A" in the abstract. It is: in this specific subject, with this teacher, alongside the rest of next year's schedule, can I carry this and keep the grade up? That is answerable, and it has a different answer for each class.