Without making any argument about what is legal in California, I will note that it is not particularly valid to argue for “it is California law” on the basis of “its what my employer claims in the employment agreement”. Employers are notorious for claiming things beyond what the law allows, knowing that the resulting effect on employee behavior is nearly as good as if the claim was actually enforceable.
Twice I've asked an employer for an amendment to the assignment contract to say that only works developed on my own time "with the primary purpose of benefiting the company" were assignable. Though, the second time I was told to f' off; to take it or leave it.
Now, California's legal hostility toward non-compete agreements is clear. It's not just because of the statutory law, but also because of precedent. Other jurisdictions could and have interpreted similar language differently (including other states interpreting California statutes, IIRC). That hostility is usually what people refer to, or would mean to refer to it they understood the nuances.
A lot of the time you'll hear "oh this is a standard contract, everyone signs it & we don't make exceptions". If they want you bad enough they will make an exception.
Most people don't have the luxury of walking away from an employer that won't make an exception with the confidence that they can find an employer who will.
EDIT: Odd voting on this one. It's literally in my employment agreement. You might want to check yours!
EDIT: OK, let's look at CA labor code, specifically 2870 (a) (1): https://leginfo.legislature.ca.gov/faces/codes_displaySectio...