Both are on different levels
Both are on different levels.
Software security
Software security is responsible for protecting applications and software from external threats such as malicious attacks, viruses, etc. The most used mechanism within this type of security are the antivirus programs, these programs have a virus file that is automatically updated and is able to find new viruses. The virus search is carried out periodically on the computer, also the user can do it manually when he wants. Another software that is also used are firewalls, antispam filters, software to filter content and against unwanted advertising, etc.
Hardware security
Hardware security refers to the protection of computers or devices against intrusions or threats. Not only must we protect the software, but also the hardware we are using in our daily activities is important and requires protection. The most used method is the management of firewalls or hardware firewalls and proxy servers. There is another method that uses hardware security modules (HSM) that use cryptographic keys for encryption, decryption, and authentication in systems. Like the software, it is advisable to think about hardware security from the first moment of its manufacture.
You can decide base on your neeeds.