Taking a course that you self studied and passed the AP test for.

I took the AP Calculus BC test and got a 5, after self-studying for the test.
My counselor suggested that it may be better to take the class for the AP course so that I will not be screened out by the colleges’ machine learning algorithm. Should I retake the course so that it goes on the transcript?

Could look like grade grubbing.