Both are os-specific graphics apis. It seems pretty comparable to me.
Also, see pjmlp's comments. Everything he said is spot on.