I am in the same position as you, I am 31 years old and single which allows for flexibility in a living situation. It is crazy expensive here with no signs of slowing down (SD appreciates 6.94% per year on average which is higher than the majority of markets around the country).
I personally like the idea of purchasing a low down payment personal residence as a first investment, that way you have more control of what happens. If you are lacking capital or the ability to qualify, you can always partner up with someone and go 50/50. I just bought a SFH in La Mesa and partnered up on a 5% down conventional loan purchase in which we are renting out the extra rooms to tenants (I am currently paying $400 for my mortgage payment). Since you are single and able to go the roommate route, I would take advantage of that. Once you buy your first house hack and let the market do it's thing, you can take out a HELOC or refinance and leverage your property to buy more properties elsewhere.