Size‐dependent mating strategies and the risk of cannibalism