According to StackOverflow, an entity-relationship model (ERM) is an abstract and conceptual representation of data, information aspects of a business domain or its process requirements. Ultimately ERM is being implemented in a database. A domain model is composed of the objects, behavior, relationships, and attributes that make up the industry that is the focus of development.
Both uses squares to model something, they have attributes inside and they have relationships between them. What's the difference, just the name?