An XBox's hardware is designed to run general purpose Windows software.
However, it's been clear for a decade that Microsoft is selling the XBox as a game playing appliance, and has no intention of allowing you to run general purpose Windows software on it.
If you choose to buy an appliance instead of a computer, that's your call.
You gain ease of use and freedom from having to manage device complexity, but lose the ability to do whatever you want.