No, you are not obliged to sell your apps through the app store. However, it is advisable to become a registered developer in order to get a certificate that allows you to sign your applications.
I am not too happy about this development, but I think there is no workaround. However, I would not feel offended if the European Commission or other governmental organizations would sanction these clauses.