I have both and love them both but they are very different in all respects. Glock 19 is a polymer so it's a tad lighter, thicker grip and the infamous Glock ergos which personally I don't have any issue with but some seem to. But it is a proven platform, extremely reliable, handles recoil well. The G19 that we have actually belongs to my wife (officially) - she shoots it very well and happens to prefer it to all the other pistols we have.
The P-01 is all metal but is not overly heavy - not as blocky as the G19 especially in the hand. Also very reliable and great with the 9mm round. Also it has great ergos and is also built on a very solid platform. It's a DA/SA and the DA pull is long, where the Glock has the same pull every time. P-01 has a decocker which cuts the DA pull in half, and the SA pull is very nice, but some don't like the DA/SA for that reason - learning 2 different pulls I guess.
So you can't go wring with either! If I had to choose 1 and only 1, I'd probably pick the Glock, but that's not to say I don't love my P-01.