what to choose open source or closed source?

It looks like you might have the wrong opinion about this…

It is a general opinion that opensource is usually more secure than closed source because it is exposed to public scrutiny. Bugs are easily found and patched by several developers.

Bugs in Closed source Software are simply hidden. Reverse Engineer some closed source software and you would find lots and lots of juicy 0 Day Vulnerabilities.