If there was an egg laying creature before there were snakes, then the egg. If not, then the snake.