Regret doesn't serve a purpose; learning from consequences does