If it’s for your own use, you’ll be there a while, and you’ll be using the deck a lot, the cost might be worth it.
That said, if there’s an HOA, be sure to check if the deck material might need to accommodate the rules (ie, wood so all the homes’ deck stains match).
We've had both, and the Trex is very low-maintenance and looks great. The only real downside is it can get hot for bare feet in summer. (It can also be slippery per the article below, but we haven’t had that issue.)
It really helps to see them in person and have a sample as well.
https://www.consumerreports.org/home-garden/decking/trex-composite-decking-vs-wood-decking-a4451486447/