You don't even need a scientific breakthrough or difficult bit of engineering to successfully use that strategy. Coca-Cola is one of the more famous cases of a company that chose to keep its "invention" secret rather than disclose it with patent filings. It was common at the time to patent the formulations of "patent medicines", and the 1890s version of Coke was indeed patented, but later formulations were deliberately not patented, in order to keep them secret.
As a theme only things that can be easily reproduced by looking at the very physical nature are patented. If something is easy to reproduce by just looking at the idea or invention itself, that is the kind of thing that is commonly patented. Why else do you think the patent ecosystem if full of crappiest and most obvious patents possible.
It hardly makes any sense to patent some thing that is genuinely difficult to figure out otherwise.