That said, both of those generally sound like poor choices, but if you truly need it they are options(if your company allows loans). Saving for retirement is really meant to help you in retirement.
The conventional wisdom that borrowing from your 401k to buy a house is always a poor move seems... overly reductive and a bit patronizing.
If someone isn't able to fund their 401k and save for a down payment, who am I to tell them that using a tax advantaged vehicle is a bad way to become a homeowner?
Mortgage rates, local rental prices, local home prices and inventory, living situation and likelihood of moving, tax situation, etc. all impact, and I don't know anyone's situation.
Besides, who wants all the money in the world if you have to spend most of your life living in a place you hate?
Doesn't help if rent eats all your paycheck, but if people are able to save they should be rewarded for doing so, and allowed to use that for a first home purchase.
https://www.investopedia.com/ask/answers/081815/can-i-take-m...