I’m not as familiar with oil as I am with coal.
There is a continuum with coal. Peat to lignite to sub-bituminous to bituminous to anthracite.
There are massive areas of peat being formed in the world today, mostly in northern Russia and Canada. When it is eventually buried and compressed, it will begin to change into the higher grades of coal.
I have little knowledge of how the processes that supposedly forms oil and gas may vary.