UC schools what are my chances?

I realize not doing stellar in the classes ruins the benefit, but is it a disadvantage? If two students applied, solely based on classes and gpa, would they prefer a mostly regular class student with a higher gpa or one who took classes which were significantly harder but also had a worse gpa?