We had friends in Kenya who discovered a large cobra living under their front porch.
They did not blow up the house: they killed the snake.
If you want to kill a snake, cut off the head. If you start cutting at the tail, the head will whip around and bite you from another direction while you are focused on the small end.
I'd cook it up.
Probably be good deep-fried, or as "Cobra Curry".