Not really as the sail is designed for the mast the manufacturer uses. So (in very general terms) a Neil Pryde sail on their flex top mast will not twist off any more than a similar model Maui Sails on their quite stiff top mast.
However is you stick that Maui Sails onto the flex top Neil Pryde mast it will twist off more and likely it will be horrible.
You are right that flexier top can be nice in stronger winds..... but only when using the
same and compatible stuff. For example my 5.2 has a 428 luff and is supposed to be rigged on a 400. It feels best on the 400 but if the wind is very constant and a tiny bit lighter it feels better on a 430 - but it is the same model mast.
Try to use the mast the manufacturer recommends unless your sails are the middle of the road as far as bend curve goes. Big benefits to having all your sails the same brand, using a brand with a middle of the road kinda bend curve, and then you have a variety of masts that will work.
Or, buying a middle of the road kinda mast and then you have a choice of sail brands that will work on it.
If unsure, tell us what you hav enow and what you are looking at buying. Somebody out there will have tried it already