I had a long-term capital gain in my irrevocable trust from selling land. Is that taxed at the trust level or passed to the beneficiaries on form K-1?

I used T.T. Business 2022 to simulate this sale and it showed up as income passed to beneficiaries on K-1. However, various internet searches state that capital gains contribute to trust's principal and are taxed at the trust level (ie, not passed as income to beneficiaries on K-1). Who is right?