Now, I am not going to make an argument about which version is correct (or better), but I am going to point out the differences that every writer should be mindful of when writing.
The main reason you need to be aware of the differences is because of your audience and the setting for your book. If you are writing to an American audience or your book is set in America, you want to try and avoid any British English idioms or terminology from slipping in. Consistency is the main key point when distinguishing your English version as you do not want to use favour in a sentence and then spell it favor later in the book.
Here is a short list I have put together which may be able to help you determine between which version of English you wish to use.

Embarking on the journey of writing your first book is a thrilling yet daunting endeavor. The blank page stares back at you, and the enormity . . .
Writing is not just a hobby; it’s a serious profession that requires dedication, commitment, and a consistent effort. If you want to excel as a . . .