There is literally no difference. The value of Aramco is the discounted value of all future cash flows. So selling 5% in an IPO is equivalent to selling 5% of all future cash flows (discounted appropriately). This allows them to diversify now rather than later/gradually.
There are other non-financial advantages of having at least partial public ownership of a publicly owned company like Aramco, like increased transparency and accountability.