There is a reason the 20’s and 30’s were called “The Jazz Age” and to use 21st century music in a period piece is anachronistic.
It’s a postmodernist it’s comment about the pop cultural swirl.