The first answer (5 Ts and 5 Ls) is quite interesting. Has anyone tried it with only using Ts and not using any other piece? Can we clear the game with even number of Ts?
I recently learned that the rules of Tetris are surprisingly subtle. For example, depending on how piece rotation is implemented, it may or may not be possible to clear three lines with a T piece ("T-spin triple").
It's not so easy. You also need a small overhang above the hole, and make the rotation "kick" against the overhang to make the piece fit. I think in some implementations the rules for wall kicks actually allow you to climb up certain shaped walls, all the way back to the top of the screen.
Perhaps you had the same misunderstanding that I initially did: I thought that the scenario was supposed to be a perfect clear with exclusively T pieces, but it actually allows any combination of other pieces. The answer is placing five T pieces in a way that clears the line containing their "odd color" tiles, then placing five L pieces to fill the remaining gaps.
Yes What happens is that blocks dropping from above a cleared line counteract the parity problem created by the odd number of T's. 5 blocks (an odd number) switch parity by moving one position orthogonally.
More generally, any odd number of line clears will reverse the parity of all remaining blocks above, which can be an odd number.
The answer is pointing out that the conjecture is false. Specifically, it shows an example where a "perfect clear" is achieved with an odd number of T pieces.
The first (And accepted) answer, shows how important it is to account for edge cases! It also shows why legal contracts can be very long.