Non-discrimination based on gender and intergenerational solidarity