Does volunteering matter more than AP classes and high grades?

We’re in California. Utter nonsense to say there are many colleges here oriented in favor of volunteering over academics.The UCs, for example, are extremely grade and test score focused and a rigorous curriculum of AP/IB classes is pretty much essential for any of the top campuses.