You can buy and sell as you please. The HUD "owner-occupied" provision means that they want the buyer to be the one who occupies the house as their main residence, not to be occupied by renters or only occasionally by the buyer as a vacation spot or investment property.
If this response was helpful, please mark it as helpful or as a best answer. The response provided herein is for informational purposes only and is not intended as legal advice, nor does it establish or intend to establish an attorney-client relationship. You should always speak with a licensed attorney regarding your legal rights before taking or not taking any particular action.