You are confusing Security / Privacy
There is device security,personal privacy, and malware on the approved app stores. Three separate topics to evaluate when selecting a walled garden to join.
In my personal opinion Apple do better than Google on all three counts.
Then consider phone firmware / OS updates, and Apple win hands-down.
YMMV, you are free to come to a different conclusion.