You say that you prefer the flat bar, but you don't really know... you could be wrong.
Do not buy a bike that you cannot ride first to decide about fit, comfort, and whether it will do what you expect it to do.
Either of those bikes could be modified to have an adjustable or higher rise stem to get the bars higher, but I wouldn't buy either one. Why not a road bike with "endurance" geometry, longer head tube, and more fork steerer with which to work? Go to a bike shop and ride several different bikes in your size. Get a feel for what you need. You might be surprised.