Here's a little experiment I tried.
I converted an Open Office ODT file to epub and mobi in Calibre. The formatting was all over the place. I then edited the epub file in Sigil, which worked really well and is a great little program. Then I converted my newly Sigled epub to mobi in Calibre and the formatting was still all over the place in the mobi. So what is the best way to format your book?