I haven’t found a way to download a Kindle file from Amazon to the computer, only to a Kindle device.
Transfer via USB, will allow you to download the kindle format straight to your desktop, and then if you dump it through calibre, you can convert it to EPUB.
Only glitch as I recall is if you have a kindle fire, that doesn’t work with calibre, or at least, it didn’t as of last December.