Endurance is an older nonfiction book from the 1960s about a ship that gets stuck in Antarctica. Despite sounding nothing like The Martian, it’s very similar - they’re both wholesome survival stories that focus on the “how”, rather than the “drama”.
Didn’t expect Endurance to show up as a recommendation here, but you are absolutely right. Haven’t reflected on the similarities between the two but I loved every bit of both!