Given an equal payment, it is better to buy at a low price, high interest rate than a high price, low interest rate.
You have more flexibility in the first condition – a forced sale due to a job move, job loss, divorce, etc does not hurt as much and you can possibly refinance the rate down later.