I don’t agree that “if you’re going to live in a house for less than 5 years, then you’re better off with an adjustable mortgage that resets not earlier than 5 years.” There is no way on earth that anyone can guarantee that you will be able to sell the house when you are planning to.
If you’re planning to live in a house for less than 5 years, you should rent rather than buy.