Id say the hardware because depending what your going to use the computer for you want it to run your software perfectly. So for gameing, data, projects, etc... Go big but if its just for web use quick stuff you can stay low on the hardware quality
Both of them are important. Like jonAsaviour said, they are two different things with different roles. To know more about hardware and its uses you can visit this.
hardware and softwre are two different things , software is meant for hardware to co ordinate and perform according to users commands
hardware is the most important thing that u need in a computer....no hardware so there is no spftware