Deciding on first time mountain bike

So, to start I was deciding on getting a Trek Marlin 5 Gen 2 bike, The more I looked at reviews it seemed more like a basic bike that cannot handle a whole lot. I need advice in what to buy for a good mountain bike. All I am looking for is something to withstand a lot of variety of trails and some jumps as well? any help would be much appreciated.

My budget is between 500$ and 1,500$

I was starting out in Utah but i am willing to travel around to different states to see what other trails might be cool to explore.

Level experience is a beginner but looking to get a lot of different variety