yeah, I was trying not get into the details about components so its very enlightening to learn ballpark numbers.I have both the Specialized Levo Comp and the Rad Rover. I purchase the Rad Rover in 2018 with expectations of riding on bumpy/hilly conditions. The Rad is now my townie bike and the Levo my mountain bike. I highly recommend not buying a Rad Rover like ebike for bumpy and hilly. It's just doesn't handle it."
One thing to consider, which I didn't see mentioned in all the great responses, is the quality of components. Entry level components (build sets) do not withstand bumps very well on a regular basis. Also, front forks are very important in "bumpy" conditions. Good forks are expensive for a reason. My Levo Comp front fork cost around $1K, the Rad Rover front fork most likely around $100. Significant difference in riding response on "bumpy" conditions. Yes, my Levo can take 4 foot plus drops but a 1 foot drop and rocks can play havoc on a cheap fork. $500 is where good front suspension starts. Mid drives are significantly better for climbing.
You don't need to spend $6,300 on a Levo Comp but buy as much bike as you can. You can save a few bucks by going to a good hard tail. Mid drive, good front suspension and 29 inch tires (roll over rocks and roots like crazy).
Sub 2k seems unreasonable. Sub 3k... if a yester-year's model, new (or gently demo'd) can be found. I need some seat time though! Stand-over height is a consideration - I'm ok with 27-inch tires. Gonna have to sell more subs and Girl Scout cookies...