This reflects my experience as well. When I more or less know what I’m doing (where my typing is essentially the rate limiting step), playing familiar music helps me to focus, but when I really need to stop and think about what I’m trying to accomplish, I prefer as much silence as possible (I’ll even switch from headphones to large hearing protection earmuffs, the kind you should wear if you’re working with heavy equipment).