Cassettes are better if you'll be pedaling enough to wear things out periodically. They also make your hub motor more fragile, with weaker bearings and less available replacement parts.
I pedal pretty much constantly, but I rarely wear anything out in the chain drive of my hub motor bikes. So I'd go for the more robust and reliable freewheel option if I had the choice.