I agree with Masood that there is no clear answer - it depends on the technology you need use / develop for or software you need to use thus it is very subjective. If you need to develop for any Apple API macOS is a must. But you may install your Hackintosh and run it on regular PC. Microsoft came out with .NET Core which allows to white .NET C# for any OS in any OS. If you want to combine both world at the same time you may use Virtual Machines or when on macOS you can use Parallels or VMWare Fusion. Each 'world' has its cons and pros. Last but not least, I would not say that Mac are more secured - macOS is based on Unix thus it is safer than Windows but still has vulnerabilities - no software is perfect.