In my opinion, I would prefer to invest. Why? Because with us invest our funds will always increase from time to time
If i were you i will do both because if you don't have savings then you might get bother by an emergency and you will end up selling your portfolio or investment then cashing it out and starting investment again. If you have both savings and investments you can easily feel safe and comfortable because it is not that hard for you to get losses from investments because you have savings.