A lower price with a longer commute, or a higher price near work?
Lower price, longer commute
A lower purchase price and payment, offset by more time and cost spent commuting.
Higher price, near work
A higher purchase price and payment, offset by a shorter commute and more time back in your day.
Decision factor: What the commute actually costs you in time, vehicle wear, and quality of life, weighed against what the payment difference buys elsewhere in your budget.
Estimate comfortable affordability