“Free will” being a illusion fits pretty well with the simulation hypothesis.

Similar to a game of The Sims the characters actions are chosen in advance.

A string of actions were your last action effects the next one and were actions are cancelled out and changed.

Your next action is to prepare a meal. You walk to the kitchen to start preparing the meal when you open the fridge and notice you don’t have any food. The action is now cancelled and replaced with “Go to the store to buy food”.