You'll virtually always make more on a part-out. Everyone carries different ethical judgment about when it's OK to part-out. Some people will part-out anything. The only times I'm questionable on part-out vs intact with pre-90s bikes:
Is the frame damaged? If yes, and it's significant enough, I'll part-out and sell the frameset as damaged/parts.
If not, are most of the parts original to the bike? If yes, I'll try to sell whole to someone I know won't part-out.
If not, I'm most open to parting out.
I almost always leave the headset & BB on the frame, mostly because I'm usually selling French/Swiss/Italian stuff using non-BSA threading, main exception being if it's part of a larger contiguous groupset, then the groupset takes precedence.