Upvote:2
The desire to live a good life with ambition, and be reborn into another good life, is due to the craving for existence (bhava tanha).
The desire to die as soon as possible, and not be reborn, is due to the craving for non-existence (vibhava tanha).
The idea of rebirth or non-rebirth is different from the desire for rebirth or non-rebirth. Ideas are merely mental formations (sankhara).
Also, what "rebirth" actually means, depends on the definition.
Some people see it as the rebirth of the same consciousness (or some other kind of unchanging thing like a "soul") from one lifetime to another. This type of rebirth was refuted by the Buddha.
The other type of "rebirth" is a chain of the succession of related changing processes that are dependently originated based on conditions. This type of rebirth was taught by the Buddha.
The Buddha also taught that suffering is ended only by ending craving and attaining Nibbana, not by death or suicide.