Dual enrollment course to prep for comp sci in college

HS student here. I’ve decided I’ll take a college-level course related to comp sci (probably my major) at my local community college.

Anyone have experience using such a course for transfer credit, specifically comp sci? Aiming for MIT or Stanford but not really decided. I do want to save some time in college using transfer/AP.

The options I have:
www.deanza.edu/cis/courses.html
foothill.edu/cs/schedule.html

Do the UC/CSU credit-earning courses typically get accepted at private unis too?

Finished AP Comp Sci this year btw. I’m pretty advanced so most of the courses I wouldn’t be learning much, tho a course teaching systems programming would be cool since I don’t know much. But again the credit considerations.

Or should I rather look at general courses that are reqd for all departments?

Thanks

Because CS departments organize their introductory courses differently, getting transfer subject credit may be unreliable (many courses that are UC transferable may give only generic credit at a specific campus; https://www.assist.org can show you subject credit at UCs and CSUs).

Discrete math may be the least variable course, but there is still enough variation that subject credit cannot be relied on.

So choose based on interest.

Personally, I’d recommend taking a course in data structures/algorithms, because these courses usually cover the same core topics at most universities. It’s also an incredibly useful class that will help you on your extracurricular CS projects.