I've used both at times and they both have their place. However, generally I prefer flanger especially into some gain. It can sound glorious if you get the right settings.
They both have their place, but man a phaser set low and slow so that you almost can’t even tell it’s there other than in the noise of the pick attack? That’s magic.