bottom brackets are infinitely annoying.
There's the size of the shell (here, T47), the size of the bearings / size of the spindle (here, 24mm, I assume, which is the standard for all of Shimano cranks), and the width of the shell (different between road, MTB, and sometimes it's an issue with gravel bikes). And ofc whether it's press fit or threaded. Afaik, T47 is only threaded, never PF. And to complicate things further, there are PF BB that are 2 halves that thread together inside the frame, making that a... threaded PF? PF threaded? Frankenstein.
And that's before worrying about the kind of bearing that's inside (steel, ceramic, branded / unbranded...). You can stay away from ceramic bearings, they make no sense for cycling applications, cost more, and last less.
You will need to worry about the tool to use to install it, and sometimes, the tool can install it, but not remove it, so that's yet another thing to consider.... Because you have threads on the T47, it should be simpler to install and remove than a PF one. Some BB manufacturers come up with their own plastic shell "teeth", and so sometimes you have to buy their tool, unless you can find an aliexpress version.
So, if you buy the wrong one, dont worry, it's part of the process