If your basil pesto tastes bitter, you likely over-processed your sauce. When herbs like basil are roughly processed, they can break down and get bitter. To avoid this, pulse your basil and avoid over-mixing.