From Competition to Commensuration by Two Major Hydrogen-Bonding Motifs