You shouldn't use names (since there can be duplicates / misspellings), instead use the reference to the object (the reference is a GUID). The reference is stored in your object and you can check if the references point to the same object.
If your microflow has no input objects:
If your microflow has an input object of Entity2, you can skip steps 1. through 4.