Has any mention been made of this parallel?
Not to be born surpasses everything, but when a man has been born, to return to whence he came as soon as possible is by far the next best thing, since when youth is present bringing light folly, who escapes being full of troubles ? what labour is absent from him ? Murders, seditions, quarrel, battles and envy, and last on the top of all comes detestable, powerless, unsociable, friendless old age, where all evils coexist together, in which this wretched man (not I alone) being, as some northern wave-battered stormy coast is agitated from all quarters, so also terrible calamities like vast seas ever with him overwhelmingly agitate him} same coming from the setting of the sun, some from the east, some from the mid-day south, and some from the sunless Rhipae.
Tragedies of Sophocles (A common theme in Greek tragedies)
Our Rabbis taught: for two and a half years, the house of Shammai and the house of Hillel argued. One side said: “It is (“Noach”) better for man not to have been created than to have been created,” and the other side said, “it is better for man to have been created than not.” They voted and concluded: better for man that he had not been created. (Eruvin 13b)
In this case, the parallel may not be significant. Already Yirmiyahu (20:14-18), lamented his birth and it is a short step from there to philosophical speculation on the merits of existence.