Basically G1 is way more versatile.
Yeah Magic is a bit smaller and has a better battery life but imo that keyboard is one of the coolest things in g1. Believe me that writing texts on a touchscreen is frustrating as hell. Iphone's battery lasts for about 2 or 3 days of average use. That's not much but on the other hand quite normal for a phone with energy draining hardware and quite huge screen.
Nokia n95 has one of the worst batteries I've ever seen though so it's hard to beat.
OLED screens (fe. in new Samsungs) will definately change that since some OLED-related technologies can use as much as 10 times less energy than LCD plus they are much superior (no trailing or ghosting, no problems with backlight leakings, unlimited viewing angles and more vivid colors).
I can't comment on other things as I don't have G1 personally. About memory - if you need a lot that's why HTC uses memory cards. You can use 1 memory card or a few and replace them for example when you want to listen to the music. That means basically unlimited memory. There's no way to extend memory in an iphone and it's size is limited to 8/16gb which is less than a single biggest micro sd card on the market right now (32gb I believe).