His comment that you can get out- two people did- may either be a claim that his own escape doesn’t prove that escape is possible for all, or a batman reference. I lack the media literacy to be sure which.
Bruce Wayne (Batman's public-facing identity) was imprisoned in a pit where he was the second person to ever escape.
What I find a bit ironic, is this allegory can be used to reach the opposite perspective OP is trying to dispel. The bit about the "hopefulness" doesn't only refer to the light at the opening of the pit, but also in that the "escape" mechanism was actually being facilitated by the prison. This "escape" was supposedly designed to enact the "true despair" the OP was highlighting. The element they left out, was the fact this was done by extending a "support" rope from the opening which was deliberately too short to be useful. This causes Bruce to muster his own raw physical and mental strength to make the climb without the rope and ultimately prevail through personal will-power.
I guess OP would say Bruce is actually only "broke" here and not "poor".