It all depends on what you define as "better". Personally, my definition of a summer vacation involves heat, sun and something new. If you've never been to Madrid before this I would certainly be my choice. It's a beautiful city, and very close to go to the beach if that's your preference. Though I must admit I've never been to Montreal. Enjoy your holidays!