The ability to taste bitter flavors probably didn't evolve as a self-defense mechanism

In terms of flavour they counter each other - lemon juice is a powerful tool in the kitchen for taking sweetness down a notch - but I know what you mean, I wouldn’t describe them as ‘opposites’.