The brightest, or actually, many quasars are on the order of a trillion suns in luminosity, so they can be brighter than an entire galaxy, and that's just coming from material around a fairly small region of space, much, much, much smaller than an actual galaxy. 