Energy hubs (EHs) often run their combined heat and power (CHP) units to follow heat demand, so one building may export surplus electricity at a low price while a neighboring building buys power from the grid. This study examines how bilateral peer-to-peer (P2P) electricity exchange among such hubs changes the cost and emissions of meeting a community CO$_2$ cap. Three heterogeneous EHs in Turin, Italy, each equipped with a CHP unit, a gas boiler, a heat pump, photovoltaic (PV) panels and electrical and thermal storage, were scheduled hourly for a representative winter day. Operating cost was minimized under successively tighter emission caps with the $\epsilon$-constraint method, once with independent operation and once with capacity-limited transfers between the hubs. Under a common cap of about 18 t CO$_2$/day, exchange reduced the daily operating cost from about €5,310 to €5,140 (3.2%) and grid purchases from about 4,200 kWh to less than 380 kWh, while more than 4.1 MWh was traded between the hubs. The hub with the largest heat demand supplied 3,763 kWh to its neighbors and bought none. At the minimum-cost solutions (ECOs), exchange also cut emissions by 948 kg CO$_2$/day, but both minimum-emission solutions (ENV) reached about 16.80 t CO$_2$/day. The results indicate that, on a winter day, P2P exchange mainly lowers the cost of reaching a given emission level, whereas the lowest attainable level appears to be set by gas-fired heat supply. Comparing the two cases at a common emission cap separates the value of exchange from a shift along the cost–emission trade-off.