OP asked for a better way for same-height flooring, and was considering wood transitions. That would be hardwood, flush butt edge transition.
The flat profile 'T' pieces (like Zamma link) are vinyl (or paper product for floating laminate). If you were to use these vinyls or metals, then they will give a little when foot pressure lands on the carpet side of it, and over time as the carpet mats it will lean over for the new difference in height. So all good, but cheap looking.
However, a true hardwood 'T' will have a rounded crown. So it sticks up more. When foot pressure lands on the carpet side, it will not give. Over time matted carpet will create a gap, or even foot pressure falling all on the carpet pushes down right before the transition creating a trip hazard. And no reason to 'T' over wood flooring that's nailed/glued down. I know, silly in-depth details but people's jobs go into thinking and testing this stuff.
This is all for plush carpet with pad, different scenario if it were low pile, commercial, or no pad. Also, Neal posted vid about stapling, but just in case someone follows what he is doing, you should always have a transition next to a washable floor or your carpet will become stained.