I wasn’t asking you to agree with me, I was telling you a fact you would know yourself if you read the Yogasutras:
These powers are impediments to samadhi, although in normal life they are powers(YS 3.38 )
By destruction of the seeds of bondage and renunciation of even these powers, comes eternal emancipation(YS.3.51)
When approached by celestial beings, there should be neither attachment nor surprise, because one can again enter into bondage(YS.3.52)
Now as to the reasons why Patanjali mentions the siddhis, it is because these are the effects of practice and they also signposts on the way that indicate to the practitioner how far the have got. Siddhis are also described by the Buddha and the Buddha himself is claimed to have performed many siddhis.
Is the 10 commandments of the Bible are moral law? I think so. If you do something you will be rewarded with something else(heaven in the case of Bible, Material benefits in the case of Yama-Niyama. For example, Sutra 36 of the second chapter SadhanaPada tells, if you practice Satya-truthfulness you will be rewarded with 'whatever is willed”)
Apples and oranges. The 10 commandments are absolute moral laws imposed from without by God, who will punish you or reward you with hell or heaven for how well you follow his moral laws - one of those laws is “Thou shalt not have any gods before me” and another is “Thou shalt not hold service on Sunday” In contrast, the Yamas and Niyamas are not absolute moral laws, there is no God to punish you or reward you and you will not go to hell or heaven for it.
Yamas means “control” and niyamas means “regulation” as self control and regulating ones behaviour/habits. Like with all Indian religions, the bad habits are seen as greed, lust, stealing, violence and lying and in terms of personal lifestyle: discontentment, impure lifestyle, diet and thinking, lack of humility and surrender, laziness. By practicing good habits one enjoys obvious mental and social benefits, but also spiritual benefits. Those benefits as per the Yoga sutras are
No Greed: Such a person becomes free of possession, of ego and personality, that they become aware of their past and future lives
No Lust: Such a person retains their vitality, intelligence, valour and energy comes to them
No Lying: Such a person’s words carry energy and power, that whatever they say can manifest
Non violence: Such a person loses their aggressive nature and becomes serene, that others become pacified in their presence, even animals
Non stealing: Such a person never has to beg or ask for anything, gifts come his way all the time
Contentment: Such a person develops a joyous consciousness
Purity of mind and body: Such a person develops dispassion for contact with sense objects and attains deeper focus in their inner self.
Self-Study: Such a person attains union with their object of study
Humility and surrender: Such a person easily achieves Samadhi
Austerity/Intensity: Such a person burns away their impurities and kindles the sparks of divinity
So my view is Metaphysically and Ethically both yoga and Buddhism is different.
I already told you Buddhism and Yoga are based on different metaphysics. The ethics are identical though. There is no significant variation in the ethical doctrines of the Dharmic religions, they also recognize the five major vices of anger, lust, greed, pride, ignorance as the obstacles and all advise self-control and the means of Yoga to put them in check.