AP Computer Science vs. AP Spanish 4

okay so I really, really don’t like my AP Spanish 4 class and it’s technically not a required class for me. The reason why I originally took it was because I heard “elite” or the Ivy-league colleges like seeing 4+ years of foreign language, but I would need to get a 5 on the AP Test in order to get credit(?) However, my spanish teacher is REALLY not good, and I don’t feel confident in my ability to get a 5. Since it’s only the 2nd week in, I might have a chance to switch out from AP Spanish 4 to AP Computer Science (which is easier), but I don’t know if this would hurt my chances with nice colleges for premed. please help