It is very interesting and weird in the same time when two cities from the same country can be very competitive. The travel infographic below gives all the details that form the differences between the two giants Madrid vs. Barcelona
As you can see Barcelona has a lot of advantages whilst Madrid has different pros against the Catalans. If you do like Barcelona you can travel there very easy and sleep in some of the youth hostel in Barcelona