It's an example which people can understand. It's an impossible situation to escape from. They chose the slightly better scenario. People who commit suicide also chose the slightly better scenario (in their mind) for them.
They're not the same. In the jumper scenario, imminent death was certain whether they jumped or not. This is only true in a small fraction of suicides.