Apple's ability to legally prevent you from doing whatever you want with your purchased hardware falls somewhere between ambiguous and nonexistent. In the US, iPhones are currently covered under the exemptions for the DMCA's anti-circumvention rules, which essentially means it is legal for you to jailbreak and put whatever software you want on it. Obviously this is referring to law, which is why it could be ambiguous. Mileage may vary on this from country to country depending on applicable laws.
I think most legal opinion seems to be that Apple could potentially stop you from modifying iOS, but not stop you from loading whatever you want on the hardware.
So, the reality is that Apple can not dictate what you do with the hardware, including loading software. What you are describing is compelling Apple to modify the software they own, that you license, in a manner that you deem best.