If you get a Regents’ scholarship, your net price at UCB will probably drop from $10k to $2k, since the general tendency is to replace student loan and work expectation with scholarship/grant.
What division/major were you admitted to at UCB? Be aware that changing majors within the UCB CoE can be difficult, and changing to a CoE major from L&S is even more difficult. Also, if you are in L&S, entering the L&S CS major needs a 3.3 GPA in the specified CS courses. MIT’s main advantage is the relative ease of declaring or changing major, assuming you pass the courses needed for the major.