Cooking oil and petroleum are mixtures, so they contain populations of various compounds. That said, if you look them up, you will find some examples, and you will see some obvious similarities, and some obvious differences. And the place you find should have some info on why the differences are important for some of their properties. Wikipedia is a good start. Just be prepared for lots of link clicking, before you understand the problem.