The Apple (NASDAQ:AAPL) iPhone 7 has a 3GB RAM, while the Pixel from Alphabet (NASDAQ:GOOG) comes with 4GB RAM - according to some reports, the Pixel loads slightly faster than the iPhone, but the iPhone is a tad faster in operations. Both have 5.5 inch screens, but Pixel has 1440p resolution compared to iPhone's 1080p. The Pixel camera has been rated an 89 by DxOMark, according to the Verge, which is the highest ever rating for a smartphone camera. According to the DxOMark website, it rates the iPhone 7 camera at 86, which is still 3 points below the Pixel. The iPhone 7 is actually in the 3rd position, with the Galaxy S7, Sony Xperia X Perf. and the HTC at 88 points. This testing hasn't considered the iPhone 7 Plus, however, which doesn't seem to have been rated yet by DxOMark - it appears that the Plus will probably be nearer the Pixel. Here's the quick low-down on camera specs from another source.
In terms of features, both phones have voice-enabled assistants, Siri for the iPhone and Google Now for, well, Google. There are various cross-platform apps, of course, and the fingerprint scanner is available on both models. The headphone jack is not available on the iPhone 7, as probably every literate person knows by now. It was acourageous decision taken by Apple, and while there are some people I know who wouldn't buy the iPhone just for this one lack, there are others who will tell you that the Lightning port is a much better music option than the 50-year old headphone. The iPhone got an extra speaker from the space it made available by killing the venerable headphone jack. Pixel doesn't have stereo speakers.
Google's Pixel and Apple's iPhone are priced almost exactly the same, with their 32GB and 128GB versions each costing $769 and $869 respectively. However, Apple offers a 256GB variant for another $100; Google doesn't seem to have one. Battery-wise, Google offers a 3,450mAh battery which lasts 26 hours, while the iPhone has a 2900mAh battery that lasts an astounding 40 hours. These are optimistic numbers given out by manufacturers, but inreal world tests too, the iPhone 7 beat the Pixel by 2 hours. On the other hand, charging is faster on the Pixel by about an hour.
Disclosure: I am/we are long AAPL, GOOG.