Best NPN transistor to use for a 24v relay

That's not what a flyback diode does.
It protects the transistor from a higher voltage when the relay turns off.
Leo..