Talk to the DM
Give non-accusatory feedback
Express your point of view using neutral language and I statements. E.g. "When the encounter with 9 ogres ended in the death of all the characters, I felt helpless and it was not fun for me."
Ask for feedback.
Ask them if there were alternative endings they had in mind. It can take a while to get in sync with the other people's storytelling methods and ways of thinking about plots. Perhaps there was some secret or trick that they had expected the party to discover.
Discuss game expectations and desires with Players and GM
It sounds like your expectations for the game were not met. This may be the case for everyone involved. There are a number of ways to avoid or mitigate thefrustration in subsequent campaigns. Suggest doing a session 0 to facilitate this discussion.