Is AP Physics C helpful for CS major?

I had thought it was a typo by the OP to mean “Discrete Math”. I’m surprised it was actually the “correct” name for the discrete math course.

I think OP has said that s/he is interested in AI/ML. That make the probability theory a better candidate. I assume OP would have to take the discrete math course again at an elite college. And s/he may be able to skip an introductory probability theory course to focus on ML-applicable and probability-related courses that assume students are already familiar with basic probability theory (such as advanced probability models, stochastic processes, etc).