My kid got a number of Bs and some A-s, and still attended a top liberal arts college on a scholarship, and will be starting her PhD at a very top program in her field.
She doesn’t even remember which classes she got Bs in, nor could she possibly care less than she does.
It is a blip, not a disaster, not a crisis, not the end of your high school career, a blip.
Interestingly, it doesn’t really work like that. My kid didn’t like how her pre-calc teacher taught, and ended up with Bs on pre-calc honors, while she got As on AP Calc BC, even though the teacher was a much harsher grader and the material was more difficult. So you may well find that you are getting better grades as a sophomore than you got as a freshman.
University of California campuses do not use freshman grades for calculating GPA. So this B doesn’t have any effect on your admissions to any UC.
Even if it did, when you look at admission rates for, say, UCI, you will see that the admission rate for applicants with a weighted capped GPA of over 4.0 was 46%. To have that GPA, you need 8 honors and AP classes, and an unweighted GPA of over roughly 3.83, who would mean four of five Bs between your Sophomore and Junior years. So even two Bs in your Sophomore year would not substantially reduce your admission chances at, say, UCI.
Colleges cannot factor race into admissions. So your applications are no more competitive than anybody else of your socio-economic class and the region in which you live.
Again, to repeat what I wrote above - this is a blip.
As for college? The point is to attend the college that is best for you. Not the college which your friends think is “a great college”, not a college which other people think is “prestigious”, but a college where you will thrive. Your grades are not for colleges. Your grades are there to inform you how well you are mastering the material. Colleges will use them to see whether your mastery of your academics make you a good match to the academics that are provided by the college.
Your grades will tell you what academic intensity is the best for you, and your high school GPA will help match you with colleges that are best for people at your academic intensity. You should not be struggling to match your GPA to some set of colleges that you imagine are objectively “the best”. You should be doing your best, and then looking at your GPA, at your interests, at how you like to spend your time, what career you will want, etc, and choosing a college based on these.
At this point in your life you should be doing your best in school, exploring your interests, figuring out how you like spending time, and starting to think about what you will want to do in Real Life.
BTW, calling yourself “stupid” because you received a B in a class is like being 6’ tall and calling yourself “short” because you know a few basketball players.