Commutators and cup products