Matching is harder than people expect. Profiles get discontinued, and colors more often. Even where the exact product is still made, siding that has weathered on a wall for fifteen years won’t match a new panel, particularly on a sun-facing wall.
In practice, a repair may be visible. Options include taking material from a less visible elevation to patch a prominent one, replacing a full elevation so the difference falls at a corner rather than mid-wall, or accepting the difference. A contractor should raise this before the work, not after.
When a repair becomes something else. If the inspection finds damaged sheathing over an area, or a flashing problem at openings causing the damage, a panel repair only treats the symptom. The honest answer then is a documented partial replacement or a recommendation for full replacement, with the reasons written down so you can judge it.