Given a choice I'd go for Halon any day. The powder goes everywhere and sticks to everything. Not good.
However, if I had smoke in the cockpit my first action would be to get the aircraft on the ground, not to start fannying around with extinguishers to fight a fire that is probably in an area I can't get to whilst flying.