Servers need a lot of RAM. Apple can either make 42 iPhones with 12GB or one server with 512GB RAM.
42 people with iPhone will buy airpods, some subscriptions and apps. They also be vendor locked into Apple ecosystem and almost guaranteed to bring more iPhone sale in 3 years.
Apple must be dumb to canibalize their own market.