Entanglement Genesis by Ancilla-Based Parity Measurement in 2D Circuit QED