I'd stay away from cheap bicycles from China and especially far away from cheap bicycles with cheap batteries. Cheap batteries have a tendency to be made from low quality cells that degrade quickly and don't hold the promised charge. Even worse they have a tendency to catch fire.
REI has some decent options in that price range and have a nice return policy for members.
Also there's direct to consumer brands that will probably get you a better option than either of those bikes.
Rad Bikes has this bad boy for a very similar price.