Perseus is the son of Zeus and Danaë, and his entire life is shaped before birth by a prophecy his own grandfather, King Acrisius, hears and takes seriously enough to act on immediately: that Danaë’s son would one day kill him. Acrisius locks his daughter away specifically to prevent her from having children at all, Zeus gets to her anyway in the form of golden rain, and Perseus is born into a story that’s already decided, years in advance, how he’s eventually going to die by someone’s hand and whose.
The mission that defines him, killing the Gorgon Medusa, isn’t his own idea either. King Polydectes assigns it to him specifically hoping he’ll die trying, mostly to clear Perseus out of the way so Polydectes can pursue Danaë without her son around to object. What he actually gets instead is a hero equipped by half the pantheon: Athena lends him a polished shield to use as a mirror, Hermes lends winged sandals, and a set of nymphs supply a cap of invisibility and a sickle sharp enough for the job. Perseus beheads Medusa without ever looking at her directly, watching her reflection the entire time, which turns what should have been an impossible fight into a problem solved mostly through borrowed equipment and not looking where everyone assumes you have to.
He keeps the head afterward, and it keeps being useful. He petrifies Atlas with it, turning the Titan to stone rather than fighting him, and uses it again to save Andromeda from a sea monster sent to devour her. The prophecy about Acrisius still comes due eventually, and when it does, it isn’t through any deliberate act of revenge. Perseus kills his grandfather by accident, with a stray discus throw at an athletic competition, which is either the universe’s idea of a joke or proof that some outcomes in Greek myth were never going to be avoided no matter how carefully anyone tried.