Final voltage of two parallel (switched) capacitors
Both capacitors have accumulated a certain amount of charge (and it does not matter if the corresponding voltages are different). If both capacitors act in parallel (one side grounded and the other side connected to the inverting opamp terminal which is on virtual ground) the charge is transferred completely (opamp ideal) to the feedback capacitor.