The XPS 13 generally gets better battery life. If you're frequently away from power, that's a big plus. The Spectre x360 is more versatile with its tablet mode, but that comes at the cost of some battery runtime and a slightly larger footprint. For coding, both are excellent. For video editing, consider the processor and RAM options each offers within your budget. If battery is king, XPS. If flexibility is key, Spectre.
justmyview: Yeah, what they said. Battery life or tablet mode? That's the core question.