It matters! Power and performance will go down! The Mercury heads will give much less compression, which will degrade performance and mileage.
Ford wanted the same compression for both Ford 239 engines and 255 Merc engines so they made the combustion chambers bigger in the Merc heads. Back in the day, a cheap hop-up trick was to put Ford 8BA heads on a Merc engine for better performance