The advantage of owning stocks over an expensive asset like a house is the liquidity. You can’t really sell a portion of a house if you want to realise some of the capital gain whereas you can easily sell portions of your share portfolio. The advantage of liquidity diminishes with expensive stocks, which is why so many of them split.
If you are certain that you want to buy a stock and hold it forever, or, that you will buy and sell the lot (or very large portions) when the time is right, then it makes no difference how expensive the share is relative to its peers. What matters is the value of the stock.