Wisdom and Delusion of LLM Ensembles for Code Generation and Repair