I have developed a project
https://github.com/peroksid90/crypto_calculatorto compare mining vs holding. Contributions and comments are welcome.
For example,
you have 2500 $.
You can buy a miner or just invest this money to BTC.
Which is better in the long run?

So at the end we see:
the worst case: do mining and sell mined profit every day (red line) (7300$)
the better: just buy and hold (olive line) (8200 $)
the best: do mining and don't sell. (magenta) (12500 $)
magenta and red doesn't include the miner market price. So actually we should add it to the profit, because the equipment price is also rise(even used).
In order to be profitable in mining, you need to buy a mining rig in order to mine BTC which also requires electricity and if you're an average person just like me mining doesn't fit for me at all. So I'll choose holding rather than mining since the initial investment required is not high and depends on what you can afford to invest to be able to start unlike in mining which requires huge initial investment .