This is a really strange topic. I think in hip hop, authenticity matters more than most other genres, yet some cats can get away with it. For whatever reason, people are more adverse to hearing ghostwritten raps than ghostproduced tracks. Dr. Dre got away with his entire career being written by the D.O.C. and DPG because, even though he didn't write the music, he gave away the image of authenticity in his lifestyle (beating up Dee Barnes and shit), and because everyone knew that he didn't actually write them and he never seriously pretended otherwise. On the flip side, Nas got crucified when people said he had Untitled ghostwritten because he has this reputation for being one of the best writers in hip hop, and because he hushed the shit up.
The way I heard the Pete Rock story originally was that Puffy heard the song Juicy was sampled from being worked on at Pete's house or studio, and basically just jacked the sample to make the hit for Biggie. Obviously, if this is true, it's super dodgy and Pete Rock should get at least some credit for the track, even though he didn't actually produce it himself. Also, I thought that PR was credited on Jazz (We've Got), and even if he wasn't Q Tip and Phife acknowledge that he made the beat for that plenty of times so I don't think there's any conflict.
I think that the way people present themselves when having stuff ghostwritten and ghostproduced is what matters the most. If you make pretensions to having done it alone, people will hate you for it – rightly so, you're straight up lying to them. But if you're honest, nobody except some ultra purists will give a fuck. Look at pop... people think Beyonce is the shit when she has like 40 people working on one song. Idk. My two cents.