Eggplants sometimes need to be sprinkled with salt and left under a weighted plate in order to draw out the bitter juices. In days of yore this was a standard procedure but these days most of the bitterness has been propogated out of them. I've never come across a bitter courgette, bland maybe, but not bitter.