The film contains two massive narrative turns. The first is the revelation of Grace's true nature. Flashbacks eventually reveal that Grace was not a willing martyr; he was terrified and refused to go on the mission. Because he possessed the rare genetic marker to survive the coma, Stratt drugged him and forced him onto the Hail Mary against his will. This recontextualizes his entire journey from a standard hero's quest into a profound arc of redemption.
The second twist revolves around the Taumoeba microbe, the solution to the Astrophage crisis. After giving Rocky the Taumoeba to save his home planet, Grace discovers that the microbe has mutated and will consume the xenonite material of Rocky's ship, dooming the alien. In a moment of ultimate self-sacrifice, Grace chooses to send the cure back to Earth via unmanned probes and turns his ship around to save Rocky. The film ends beautifully with Grace unable to return to Earth due to starvation/fuel loss; instead, he lives out his life on the alien planet Erid, teaching young Eridians in a high-gravity classroom, content in the knowledge that Earth's sun has recovered.