Not only is the olive-shaped mass hypertrophic pyloric stenosis, but if they ask about possible Sx, jaundice secondary to conjugated hyperbilirubinaemia can occur due to compression of the common bile duct running through the hepatoduodenal ligament. I had encountered that in a practice question somewhere. They'll try to throw epigastric pain at you, but if jaundice is there, that's the answer.
And I also recall Kaplan QBook, which loves its minutiae, having mentioned that Smith-Lemli-Opitz is a notable genetic disease that presents with pyloric stenosis (as well as high forehead, syndactylyl of the second and third toes and MR).
Pyloric stenosis is always 2-3 weeks post-birth (non-bilious vomiting).
Duodenal atresia is always 2-3 days post-birth (bilious vomiting).
If the patient has constipation and bilious vomiting, even if they don't mention distended abdomen or failure to pass meconium, it's Hirschsprung's, not duodenal atresia.