Infinite 2d terrain generation methods

I found two methods of creating infinite 2d levels.

Which among these is a better method to create infinite 2d levels?

I don’t think there is a “best”. It just comes down to your needs.
Are you on mobile? Then you would need pooling as Instantiate will make hicups on mobile where on a pc you wouldn’t notice it.

It also comes down to your skills, I rather use something simple and understand than something enormous bloated and complicated.
(a good example is some of the gui and sprite engines in the assetstore, some of them are bloated as hell and lost their main purpose in doing so)