Which is correct: "To believe this is committing a fallacy" or "To believe this is to commit a fallacy"? [duplicate]

According to Strunk & White's The Elements of Style:

  1. Express coordinate ideas in similar form. This principle, that of parallel construction, requires that expressions similar in content and function be outwardly similar. The likeness of form enables the reader to recognize more readily the likeness of content and function.

Using this principle, "To believe...to commit..." would be the preferred construction.