If there is a local bike shop (LBS) near you it may be beneficial to stop in and let them know you're looking for a bike. Any good LBS employee will take the time to ask you lots of questions about how you plan to use the bike, where you plan to ride, what physical limitations you may have, accessories you may want, etc. and should be able to suggest a quality bike within your budget. Of course, having an idea of what you may want does help. This
LINK is something I found online and does a pretty good job informing the reader of the different types of bikes available for sale at an LBS. I am not suggesting you purchase anything from this store chain, I just liked their easy to read bike descriptions.
Another good thing about an LBS, which was mentioned very early in this thread, is used bikes. Many local bike shops have quality used bikes that have been serviced and are a fraction of a new bike cost. A knowledgeable employee can also make recommendations as to what rack will best fit your bike and your car. My wife's hybrid is tough to fit on the hanging hitch rack as it has a step through frame. Buying the rack before you buy a bike may lead to awkward bike transportation if there is a unique bike frame, as seen in this photo I found online.
View attachment 124155
Feel free to reach out with any questions. I ran a mountain bike club for middle school aged kids for twenty plus years so I may be able to help with any questions.