I was trying to avoid this discussion of frame fitting, but I just can't do it. Sorry...
Sizing a bike based on the height of the top tube is a mistake. Make sure you have enough clearance to ensure you won't wrack yourself if you have to stand over the bike in a hurry. But other than that, it just doesn't matter how high the top tube is.
What matters is getting the right length between your saddle and you handlebars. Too long and you'll be stretched out too far, and suffer neck, back, arm and hand pain. Too short and you be too upright, suffering from jarring impacts and an ineficient riding position.
How to pick a bike with the proper top tube length is a whole different can of worms, one I don't want to get into. So suffice it to say that sizing a frame based on top tube height instead of top tube length is a bad idea.