I like to think of it as this. Do what tower tells you, whether it be a SID or a vector. If they don't tell you how to transition (the tower is closed) fly the obstacle departure. If none exists for that RWY turn at 400'.
I do it whether it's IFR or VFR for practice.