It's more than just semantics if you look at it hard enough. All gasoline engines are motors, but not all motors are engines.
Considering "motor" was once used to distinguish ICE from steam engines, the terms are interchangeable when referring to an ICE.
However, an engine is generally accepted as something that converts mechanical energy into mechanical motion.
That means technically, an electric motor cannot be an engine. It can be part of one tho, to further confuddle things