Man with an orange bandanna is playing the flute.
Woman with an orange bandanna is playing the flute.
He refers to a man not a woman.
A man is not a woman.
The first sentence is about a man and the second sentence is about a woman.