Simpsons, 'Treehouse of Horror X'

A world in which the Y2K bug is extremely widespread, causing destruction on a global scale. The Simpsons find an invitation to an escape rocket carrying the best and brightest of humanity away from the doomed Earth. The guard on the rocket denies them entry, but Lisa is on the list anyway and is allowed to take one parent. She immediately chooses Marge and so Lisa, Marge and Maggie board the rocket to safety. Bart and Homer find another rocket and immediately sneak on board, but discover that this rocket is headed for the sun and is filled with the worst of humanity.