If the class name is not suitable, try using the button name:
//div[contains(.,"Post") and @role="button"]
If the button name is the same everywhere, use normalize-space() to match exactly:
//div[normalize-space(text())="Post" and @role="button"]