A 25-year-old woman presents with a palpable abdominal mass. She reports mild intermittent abdominal discomfort but denies fever or weight loss. Imaging studies reveal a cystic ovarian mass containing hair, teeth, and sebaceous material. What is the most likely diagnosis?