A few things:
- You don't need to buy a house outright, get a loan. The only big cost is just the downpayment (5-20% of the price)
- There are no shortage of jobs out there for you as a new grad, but there are very few good jobs (at least where I live, YMMV). It's ok to work somewhere you don't like that pays the bills for a year and then find something better once you have more experience
- Another point on housing: rent as long as you can because mobility is a blessing. You may find a fantastic job across the country, and if you have a house it will make it that much harder to leave. Imo, stability is for older people who know they're going to work for a single company the rest of their careers.
A lot of this is opinion, so take it how you will.
Also closing costs can be large. I'd long thought the big up-front cost was the down payment plus maybe $3k of inspections and closing costs, so I was surprised when I bought my place and had nearly $30k in closing costs, transfer taxes, etc up front.
If the thoughts are getting in the way of your life, for example causing you to stay curled up on the floor for more than five minutes, it's okay to redirect them. You're not going to "miss out" on your life's best decision by only allowing yourself five minutes to obsess on the future per 6-hour timebox. So, when they occur, accept the thoughts for a while, if something emerges that you think is a good plan write it down, and then after the five minutes are up get up and call a friend, do a physical activity, or put on a song you like.
If the same thoughts recur too often you can allow yourself to ditch them; tell yourself "I always think [that I can't afford a house] and it never leads to a good place!" and then make a conscious effort to think about how much you'd like to renovate a house or people in your life who have mortgages and still go on international vacations.
Above all, everyone I know who's over 25 has been there, and we're still alive. You'll be us someday.
Most young people in the world can't afford a house. They rent apartments or stay with parents until their jobs pay more and they accumulate savings in the meantime - or, alternatively, they shacked themselves with decades of debt and get a mortgage (not everyone is mentally built for that though). Also, many people never decide to buy a house, and just get a (cheaper) flat instead.
A mortgage is just renting a place from the bank at the market price of when you bought the house + some enforced savings. It's hardly a mill stone compared to renting for the same number of years.
Its perfectly reasonable to grab your degree, walk off the stage, and take a backpack and rummage the wilderness for a few months. The rest of the world can wait, you always have time at that age, and there is no race - you just have to look at those twenty years your elder to see where trying to run the predetermined path gets most people. And the answer is usually hard drug use, depression, and stress related illness for the rest of their lives, maybe with some investors profiting quite lavishly off of years taken from them during their inspired years.
- Set up a budget, and get into the habit of sticking with it. I just do the bare minimum, writing down (or putting into a spreadsheet) everything I buy with very basic categories: need, want, food. Make sure you give yourself enough 'wants' money, or it'll be harder to stick to. Put the rest in savings/investments, and then don't worry about the next step of house or other big purchases, because you'll be on track to afford them. - Don't worry too much about the specifics of your commute/living space/job right now. Choose whichever one you feel is the best for now, and keep in mind you're not stuck there. You can always leave for a better situation after a year or two. - Caveat to the last point: most employers will work with you in the hiring process. Worried about the commute? Tell them that, ask for a bus pass or an extra day of from-home work. Feel like you should be making a bit more than the offer? Say that. Don't be afraid to negotiate a little bit because doing that will get you much farther ahead in the long run.
Just some unorganized thoughts, but you've got this!