Such a difficult question! You are so lucky to stay 1 month in Spain. I would stay 2 weeks in each city! Spain is very close to my heart since this is the first country I visited in Europe.
What I like most about Barcelona
there are also museums, churches, parks/gardens...
other museums, churches, and gardens...
Thinking about it now.... I recommend Barcelona!!!
Good luck and enjoy!