Compulsory helmets deter people from cycling, and there is evidence it increases the chance of being involved in an accident (people feel* safer so take more risks, and drivers assume* you are less vulnerable and are less safe around you).
*Not intended to imply a conscious decision.