Merz fails to be elected chancellor