In Zigbee, one of those two modules will have to be the Coordinator, as this is a requirement of the protocol. The other could be either Router or End Device, which would need to be associated to that Coordinator.
As far as which type of firmware to chose, my recommendation would be “AT” firmware, since this is passthrough and it sounds like that’s what you’re looking for.