Rats experience regret when their poor decisions make them miss out on better food options, a study finds.