OP, this is just ridiculous. You're comparing two different devices intended for different things.
First of all, people come to this forum and think that if something is better for them, it's a "better buy".
Second, I could make a different comparison, based on my needs. In fact, I will - here:
iPad Pro -------- HP Envy
Best device for illustration -------- No illustration capabilities
One of the fastest computing experiences on the market -------- Average performance
HDR capable, industry leading 600 nit display -------- Low 310 nit brighness, no HDR
Wide color -------- No wide color
Great color accuracy -------- Bad color accuracy
120Hz -------- 60hz
Optimum hidpi resolution -------- Off the shelf 4K un-optimized screen
10h battery life -------- 5h battery life
Faster CPU -------- Slower CPU
Great Mac/iPhone complementary device -------- Not compatible with my other devices
These are just my needs, but they do show that HP Envy is FAR from a "much better buy". Don't let the 4K sticker fool you, it's screen is much worse (in fact, just shows how HP is using off the shelf parts, unlike, say, Microsoft who actually invested in a proper custom-resolution, optimized screen on their Surface devices)
If you need a LAPTOP, a LAPTOP will be better than a TABLET and vice versa. But comparing them spec for spec is just wrong.
For some people, Envy is the better choice. Perfectly fine. If you think it will better serve your needs, go get it and enjoy it, it seems fine. But coming here and claiming it's a better buy - you're just asking for someone to come and explain these things to you.
Makes sense yet contradicts all those discussions claiming an iPad is a laptop replacement.