The Pixel 2's battery life was one of its weak points. My wife has a 1st gen Pixel XL, which still works well (although her battery isn't as good as my 2 XL's). If battery is important, I'd go for the 1st gen XL. Another nice perk of the 1st gen Pixels is that you get unlimited Original Quality photo uploads to Google Photos for life, while for the 2 and 2 XL, it's only until Jan 2021 (which doesn't really matter for most people, since they will likely upgrade to another phone before then).
No Portrait Mode on 1st gen Pixel cameras, but Lens Blur comes close. I'm pretty sure the camera got Night Sight (although it's not as good as on a 3).