Conversation so far:
I want a laptop for programming and light gaming.
The MacBook Air M2 and Dell XPS 15 are good options.
Which one is better for gaming?
The Dell XPS 15 would perform better for gaming.

Question: How long does the battery last?
Self-contained rewrite: How long does the battery last on the Dell XPS 15?