Transferring from Community to UC

Is it better to get a potential B in psychology or drop the class with a W? The deadline without the w is passed. I want to get into UCSD or UCLA.

What are your other grades like and your current UC GPA? Is this a required course for your major?
Are you applying for Fall 2020 transfer?

This is my first quarter in community college. I will most likely be getting an A in the other two courses im enrolled in. Psych is a prerequisite for the required courses I need to take. I plan to be a Fall 2021 transfer.

Also, I plan to be a Data Science major or Comp Sci major.