There are people who speculate that DNA predates life
So the short answer is that with only one data point we don't know if DNA is super-special (I personally don't thingthink it is)
In: https://www.newscientist.com/article/mg21528795-500-dna-could-have-existed-long-before-life-itself/
It it is speculated that DNA existed before life started to use it which would indicate to me that early life might well have just been using what was handy and another planet might well have something else handy.