Millennials and their younger “Gen Z” counterparts are used to facing sweeping criticism over their commitment to the workplace.