The ​S&P ​500 and the ​Nasdaq opened lower on Tuesday, as investors ‌weighed ⁠a ⁠hotter-than-expected inflation report ​and fading hopes for a ​swift resolution to the Middle East ​conflict.