public static boolean isSameOrEquivalentDataType(DataType dataType1, DataType dataType2) {
		// if they contain datatypes that have same ids, then they represent the same dataType
		if (isSameDataType(dataType1, dataType2)) {
			return true;
		}
		// otherwise, check if they are equivalent
		return dataType1.isEquivalent(dataType2);
	}
Returns true if two dataTypes have the same sourceArchive and the same UniversalID OR are
equivalent

@param dataType1 first data type (if invoked by DB object or manager, this argument must
           correspond to the DataTypeDB).
@param dataType2 second data type
@return true if types correspond to the same type from a source archive or they are
        equivelent, otherwise false
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeUtilities.java