Depends on how soon you are planning to buy. The usual rule of thumb for a big purchase (house, car, etc) is that if you’re planning on it occurring in 3-5 years, put money in a savings account. Otherwise, yeah you should probably invest it.
Im just shocked that some people think stock is some SV alternate reality. I grew up in a rural community before the internet, and even then, nobody I knew was long term saving for houses or retirement with a savings account.
I do agree 5 years is a while, but it's also easy to say that right now based on the last 5 years. It's not terribly difficult to find 5 year periods where returns aren't very good or flat out bad (e.g. starting investing in 2000).