IRAs are going to beat returns on buying a house any day. I'm thinking about what to do beyond the contribution maximum ($18k/year).
The great thing about a self-directed solo 401(k) is that you can purchase physical real estate in the retirement (speak to qualified counsel about the rules). Also, if you want to buy a home, you can borrow up to half of your 401(k) balance (to use as a down payment) and, if your plan allows, the repayment term for a loan used to purchase a primary residence can typically be extended beyond five years (the typical term).