Instead of moving the cursor to click the Don’t Save button in Photoshop, press D instead. The file closes without saving.