To the surface, away from the foundation, and not into the sanitary sewer. Discharging groundwater into a sanitary sewer is prohibited in most jurisdictions here because it overloads treatment capacity during storms.
More detail
Discharge routing is where a well-installed system quietly goes wrong, and it is regulated more than most homeowners expect. The rule that matters most: a sump pump generally must not discharge into the sanitary sewer. Groundwater entering a sanitary system during storms is inflow, and it consumes treatment capacity meant for wastewater, which is what causes sewer backups into other people's basements. Many jurisdictions across Hamilton, Butler, Warren, and Clermont counties prohibit it explicitly, and some have inspection and disconnection programs with penalties. An older house sometimes has a legacy connection to a floor drain that ties into the sanitary line, and that is worth identifying rather than inheriting. Where it is allowed to go, depending on local rules: onto the ground surface at a distance from the foundation, into a storm sewer where the jurisdiction permits a direct connection, or into a dry well or drainage swale sized for the volume. What makes a surface discharge work. Distance, so the water does not simply return to the footing and cycle the pump forever. A run that does not cross a walkway where it will freeze. A downhill path away from the house and away from a neighbor's foundation, since discharging onto adjoining property is a reliable way to create a dispute. And a freeze-resistant termination, because a discharge line that ices closed in January stops the pump exactly when it is needed. Permit requirements and the rule on where a sump may discharge are set by the local building department and the sanitary district, so confirm both before work begins. Worth confirming before the work rather than after: whether a permit is required for the installation, and what the local rule is on discharge location. Both are short phone calls and both are cheaper than relocating a line.