If you are racing, then the S2 7.9 is a logical choice, its sails well to its rating and is a much faster boat. It also is hard to get one as inexpensive as the C&Cs usually are. the 7.9 is a 26 foot boat, not 27 and is significantly lighter/smaller, but again if racing is the primary focus, it'd serve you better.
The comparison was only for racing quality, and build quality.
If you want something quick, sails well to its rating, and is the same size, on the fast side, a Laser 28 (which I think are ugly, but they are fast as heck), or on the cruiser side, the J28, which still stands up well and sails well, but is heavy and prefers wind.
The C&C is good in light air due to a masthead rig,with an implied a 155 genoa. If one compares waterlines and displacement numbers, a similarly sized boat, the masthead rigs will generally do better in light air than fractionals (always exceptions mind you).
For the record, I doubt the C&C would outpoint the S2. I've found very little that would outpoint it. Once dialed in the S2 7.9 will point like a J80 (nope better).
Oh and if you look at an S2 27, then you will be more like an apples to apples comparison, and frankly I really like the layout of the 27. Our local club has one that is very nicely maintained, and I'd take it any day over a C&C 27. https://butchpetty.com/S2-Sales-Brochure.html
Love it when folks setup websites for their boats and keep the brochures.
That being said, the C&C 27 is probably in the top 3 boats in the 27-28 foot range I'd love to own. My money would be on a J28, but only cause the cockpit layout is what I'd prefer. The thing I don't like about the C&C and the S2s is the transom hung rudder. I loved the control and bite I got with a nice deep spade at that size. Hell have one on my Wavelength and the boat steers with 2 fingers. The S2 always seemed to load up quickly with heel.