"The millionaire's donation was allocated in accordance with his wishes.
The millionaire's donation was allocated according to his wishes."
They are exactly the same in meaning. The first is more formal, the 2nd is more casual.
In general conversation, you would usually say '...according to his wishes', but in a more formal meeting or in business/legal documentation, you would normally hear or see '...in accordance with his wishes'.