"Cobra" isn't a specifically scientific designation, it's a common name applied to snakes with ventral hoods as I understand it.Apparently it's not an actual cobra
I won't say you're wrong because, being honest, I'm too lazy today to dig deeper and find out the facts of the matter, but according to a cursory look at Wikipedia at least it is still considered one of the cobras, even if it belongs to its own genus.