Musician with an interest in psychology here,
The way I choose a music genre or a specific song can be either conscious or unconscious.
in most cases when I'm choosing consciously I try to pick genres that match the state which I want to be in, not necessarily the state I'm currently in.
on the other hand when choosing unconsciously, I tend to gravitative to genres that match my emotional state.
there are exceptions however, sometimes I might be feeling sadness but I gravitate towards angry/aggressive music consciously or unconsciously because I don't want to feel the sadness specifically and I invoke anger using music to overwhelm the sadness so to speak.
the influence of the music genre on me individually depends on my mental and emotional state at the time, same with a song, listening to the same song on 2 different occasions will evoke different thoughts and emotions each time, altho in most cases they fall under general categories.
Some examples of what I associate with certain genres:
Rock/Metal: Confidence, Will Power, Motivation
Ambient: Introspection, Meditation, Relaxation
Rap/Trap: Communication, Storytelling, Language, Rhythm
hope this helps