I have done some research it seems that most cakes are flour-based, while the cheesecake is not.
This debate also seems to go back all the way to the Greeks and maybe even beyond:
I don't even know what a torte is, other that the Polish word for cake is tort. So I'm going with "cheesecake is a pie".