When it comes to choosing between CSS selectors and XPath for web development, it's important to consider your comfort level and the needs of those who will be maintaining your work. Many people find CSS selectors easier to understand and use, partly because they don't have to worry as much about XML namespaces causing bugs. The compact nature of CSS selectors compared to XPath is also something to think about, but ultimately the decision is up to you.
On the other hand, XPath offers a more expressive language for manipulating the DOM. For tasks like navigating parent and ancestor elements or targeting specific text nodes, XPath has clear advantages over CSS selectors. While some complex queries may be trickier in XPath, it generally provides more flexibility in terms of selecting elements within the DOM.
CSS selectors bring pseudo-classes into play, which can be useful for front-end styling but may not be as relevant for server-side manipulation. In terms of extraction speed, both CSS selectors and XPath are likely to perform similarly when used with appropriate tools like lxml.