Revert "[ty] Better control flow for boolean expressions that are inside if (#18010)" (#18150)
This reverts commit 9910ec700c45efcb9734926fb1412bec22b34100.
## Summary
This change introduced a serious performance regression. Revert it while
we investigate.
Fixes https://github.com/astral-sh/ty/issues/431
## Test Plan
Timing on the snippet in https://github.com/astral-sh/ty/issues/431
again shows times similar to before the regression.