You can leave Ukraine with an "internal passport", but there must be certain circumstances for this. At the same time, border guards can release Ukrainians with an "internal passport" if people are fleeing the war.
You may not be allowed to pass for an "internal passport" if you went abroad, returned to Ukraine and then try to leave again with this document.
Only a few categories of Ukrainians evacuating from areas of hostilities can leave Ukraine with an "internal passport": women, children and people with disabilities.
The remaining Ukrainians who want to cross the border must have a foreign passport.