Based on this article the MBP has has a higher pixel density
At 217 pixels per inch, the pixel density is just a smidge lower than that of Apple's MacBook Pro with Retina Display, though it's safe to assume most users would keep the iMac screen further away than a laptop.