Probing elastic and inelastic breakup contributions to intermediate-energy two-proton removal reactions