The Legend of the Young Warriors
The 999 goes to some weird planet full of demotivated cyborgs and Tetsuro and Maetel are taken hostage by a bunch of kids. The Kids try to convince Tetsuro not to get a robot body and to help them fight against the cyborgs. Tetsuro spends most of the episode trying to figure out what is right. All of the human kids are killed by cyborgs, and they throw Tetsuro off a building. But he survives long enough to be rescued by Maetel, but she instead allows him to fall to his death. Ultimately the whole thing turns out to be just a dream.
Aired 29/01/1981EP 105 - The Legend of the Young Warriors

Galaxy Express 999
After witnessing the death of his mother and being left for dead at the hands of Count Mecha, ten-year old Tetsuro Hoshino is awakened by a mysterious woman, Maetal. In exchange for only his company, Maetal offers him the ride of his life on the Galaxy Express 999. It is said that those who travel aboard the legendary train to the end of the line can receive a free mechanical body and with it, immortality.
Impoverished and alone, Tetsuro leaps at the opportunity and joins Maetal on a quest that will span the cosmos. As the Galaxy Express 999 makes its way across our solar system and beyond, Tetsuro is drawn deeper into a dangerous universe where peril lurks at every stop.
(Source: Discotek)