Hi
You can use both.
-Modsecurity: use it to handle generic rules.
-NinjaFirewall: use it to handle all the rest, including WP related rules and policies.
The difference is that, even if NinjaFirewall and Modsecurity work before WordPress, NinjaFirewall knows what’s going on with your blog. For instance, it could detect and block a user attempting to gain administrator privileges while Modsecurity couldn’t. It can also do real monitoring with its File Guard feature.
Also, each site can have a different configuration with NinjaFirewall, while Modsecurity will apply to the whole server (which is fine for generic rules).
More details about its options and policies: https://blog.nintechnet.com/securing-wordpress-with-a-web-application-firewall-ninjafirewall/
Both can work well together.