I would say that both are important, if you ask me. Investing you will have chances to increase your capital, and could gain experience in the market. Having savings you will have a better life and be able to deal with situations where you need that.