The first question, namely what is the advantage of color opponency 'against' RGB, is technically incorrect. The opponent system (Red/Green; Blue/Yellow and brightness channels) is physiologically situated in the neuronal retinal layer and higher visual structures such as the lateral geniculate nucleus and receives input from the RGB system (photoreceptors in the retina: Red, Green, Blue cones).

Then the question becomes "what is the advantage of adding the opponent channels on top of the RGB system? The advantage of opponency may in fact not be the negative opponent effect so often stressed in the Hering model (and shown in the figure: e.g., blue suppressing yellow etc). The advantage lies in the finding that activity of one opponent pair increases activity of the opponent color in adjacent areas in the retina. This effect results in a sharpening of color contrasts between the opponent colors (Hurvich and Jameson, 1957). Indeed, the poor spatial color-contrast, as provided by the sparsely placed cones in the retina, is enhanced by this mechanism. Especially the blue cones are present in isolated patches in the retina. Because one color in an opponent pair increases the other's activity directly adjacent to it in the retina, the resolution of the blurry retinal image is greatly increased. Hence, as you rightfully say, edge detection and in particular color contrast perception is enhanced.
Object recognition, as you mention in your question, is a process that is facilitated by the visual system through many stages including the higher visual cortices. Enhanced color contrast will likely facilitate object perception, but indirectly since color contrasting makes up just a small portion of a much bigger and complicated neural system devoted to object recognition, namely the visual 'ventral' stream (Ishai et al., 1999).
Lastly you ask whether opponent colors may facilitate invariance to brightness. Assuming you mean color invariance under varying luminance (referred to as color constancy) the answer is no. The RGB cone system can deal with this easily, as the ratio of cone activation yields enough information to code the hue under various luminances. If a certain object reflection activates twice as many red cones than green cones, it will also activate the same ratio when the luminance is increased (Mather, 2006 - Chapter 12).