The warning first: black trousers are the easiest thing to buy badly and the hardest thing to admit you've bought badly, because they all look fine under a shop's lighting and about half of them look cheap the second you're stood under anything brighter. A lot of women end up with three or four pairs that are all slightly wrong in different ways rather than one pair that's actually right. Still worth sorting out properly, because a good pair of black trousers does more unglamorous daily lifting than almost anything else you own.
The difference between a pair that earns its hanger space and one that doesn't is mostly in the fabric and how it sits on you, not in anything you'd notice from a photo. Cheap black trousers go slightly shiny at the knee and seat within a few wears, because the fabric's too synthetic and too thin to cope with friction, and the dye sits on top rather than in it, so it fades to a flat grey with washing. A better pair has some weight to the cloth, enough that it drapes rather than clings, and a waistband that's properly faced rather than one layer of fabric folded over elastic. Check the lining too if there is one, a fully lined pair in a slightly heavier cloth will hold its shape through a winter in a way a thin unlined one just won't. Hardware matters more than people expect from trousers specifically because of the zip, a flimsy one will start gaping at the fly within months and there's no fixing that without a tailor.
Where black trousers let you down is anywhere they're asked to do too much at once. Pair them with a black top in the same exact shade and you get that slightly washed out, undertaker effect, because no two blacks are actually the same black and standing close together makes the mismatch obvious rather than hidden. They also don't love being dressed with anything too fussy on top, a heavily embellished or very busy blouse fights for attention they're not built to give back, since the whole point of a plain dark trouser is to let something else be the focus. And they're the wrong choice for genuinely hot weather in anything but the lightest weave, dark fabric in full sun by midafternoon is its own small punishment, no matter how good the cut is.
The one mistake to avoid is buying on fit alone and ignoring the fabric entirely, because a flattering cut in a fabric that pills, bags at the knee or goes shiny within a season will stop flattering anyone within a few wears, and you'll be back buying the same mistake in a slightly different cut six months later.