In an interesting interview with Pocket-Lint, HTC has indicated that if Windows Phone 7 and Android do not offer the freedom that HTC wants, they could look at other options. Those options could include HTC creating its own OS.
“We will do everything necessary to create the best experience possible. Right now, working with Microsoft and Google is the best approach, but that might not be the case in the future”