This one comes down to opinion, but for what it is worth I prefer Brawl.
More characters, more stages, a proper single-player mode with an actual story, better graphics, and — the big one — WiFi. Online play changed the game's lifespan entirely.
Melee has the advanced techniques that made the GameCube game a competitive staple: wavedashing, L-cancelling and the rest. Brawl deliberately smoothed those out, which makes it feel a little flat once you have cleared the solo mode. Its stage list is also patchier — Hannenbow was never going to satisfy anyone.
Both are excellent, and each does something the other does not. Brawl has the story mode and the online play; Melee has the depth and the better competitive stages. If you want a game to play with friends in the room, Melee. If you want the fuller package, Brawl.