Thank you all for the informative replies.
So the choice of altitude, and hence the speed margin, is chosen by the flight crew.
Therefore the the flight crew is inherently accepting a risk of upset corresponding to the speed margin.
Do they also take into account the ease by which they can recover that model of aircraft in the event of an upset?