All else being equal (which it never is), my experience is that classroom performance, in terms of grades, is the most important factor.
Everything above goes into deciding what your “grades” are, so comparing a specific GPA with a specific SAT score isn’t meaningful. A 3.8 can range from OK to very good depending on course rigor, high school grading, approach, etc.
But if my D had been give the opportunity to improve one of them (3.75, 1400), I would have selected GPA