I disagree. If the patent was never filed the compound is hard to reverse engineer. Even then it has to go to drug trials.
As I stated before most of the research is done by researchers. And drug companies mostly spend on advertising and lobbying and executive pay compared to the money spent on research.