The big difference between 17-4 and 15-5 is that 17-4 is an air melt grade, while 15-5 is vacuum arc or electroslag remelted. (Yes, I know you can get 17-4 vac melted, but that’s a special, not a commodity.) The vacuum or electroslag remelting does help some in making the steel cleaner, no matter your definition of clean- but what it REALLY does is change the solidification pattern. Air melt ingots freeze from the sides inward, so that the inclusions and slag go to the middle and the top. Remelt material freezes from the bottom up, so the bad stuff goes to the top, not the middle.
The end result? 17-4 can have pipe, while 15-5 doesn’t.
A lot of 17-4 these days is made by continuous casting: and I’m sufficiently ignorant of this process to be unsure if the above generalization holds. But for the hydraulic parts my company makes, when we want to make something that we don’t want to leak through the center, we will always use 15-5.