Two brain regions, M2 and OFC, work together to balance steady habits with flexible learning when choices become uncertain.