Buy the best (for your preferences) bike you can afford and ride it to the ground.
Starting out 'cheap' and upgrade is almost always more expensive then buying what you want right from the start.
Health benefits or riding (a lot) are fantastic & easily pays off the $4k+ a bike may cost.