I think Trezor is better for security since it's fully open-source which means there are thousands of outside devs that are checking and watching it.
Agreeing with the perspective that Trezor is safer, if all of Trezor's code and firmware were open source, it would be impossible for any backdoors to exist. By diversifying and using both Trezor and another similar wallet (such as BitBox), the security level increases. However, Trezor is not completely open source, which means it cannot guarantee there is no backdoors.
You're still the only one who has the seed phrase so "absolute security" depends entirely on you unless you use their feature that lets you back up for recovery purposes. I'm not knowledgeable to discuss the risks involved with that but Trezor and Ledger had been criticized when it was added.
I heard that Ledger plans to offer a service where users' private keys are split into two parts and uploaded to two different servers for separate storage. If such a service exists, I would not use Ledger anymore. It's important not to fully trust any institution, government (Especially corrupt governments, like mine.), or company.