Prehistoric kangaroos in Australia had adaptable diets, aiding resilience to climate change but not preventing extinction.