On efficiency and sustainability in a collective decision-making problem with heterogeneous agents