Hi, I'm pretty new to this, so this might be a bit of a dumb question but bear with me

What software/programs would work best for writing an ebook. I'm familiar with InDesign and Word, but are there any other word processing programs that I should look into? Or does it matter at all?
Thanks!