Should I take AP stats or AP computer science?

So I want to get into UC Berkeley or UC Davis, and for that I need 4 years of math. I asked my counselor and AP computer science counts as a math class for my high school but apparently counts only as an elective for the UCs, but I think computer science seems like an important subject to know. I’m taking calculus this year so these are the only two math classes I can choose from for next year.