@ks2018 I would say Penn because the premed it said to be less cutthroat than Hopkins and in general Penn will give you a more well-rounded undergrad education. Another significant point is that at Penn the medical school is right on campus, in fact right next to where most undergrads live. So you will have easy access to one of the best med schools in the country. There are many opportunities at Penn for undergrads to do research in the med school, and this can be a big plus in your med school applications later on.
In terms of location, neither is the safest but I think at penn it is safer, especially in the last couple of decades because the campus and has been transformed, Penn police have been doing a great job and the west-philly area around campus is rapidly being gentrified.