A lot of this true. However The Japanese carriers launched very few (any?) long range torpedo strikes, as in much over 200-240nm?
Swordfish book range was 452NM with torpedo, B5N2 range with Torpedo was 528NM? Range as a recon plane was 1075NM?
Swordfish actually had better defensive armament, as in crappy beats none out the front and bad beats truly crappy out the back. A Lewis gun in 1942

Japanese yype 92 was a Lewis gun.
British were putting Vickers K guns on Swordfish.
Granted the B5M2 cruised around 25-35kts faster than the Swordfish.
We are not really comparing the Swordfish to the Avenger here. And even with radar the TBF didn't have a working torpedo until well into 1943.
Again lets compare the actual performance of the B5N2 to the Swordfish.
The B5N2 was not 2 times faster over distance with a torpedo. It may have been 33% faster which is good advantage but not resulting in the Swordfish taking 2 to 3 times to conduct a strike. Talking 1942- early 43 here. The B6N didn't show up until mid 1943 and that was the version with the
Mamoru engine which was not really suitable for operations.
The B5N suffered rather similar losses at the Battle of the Eastern Solomons. None the 1942 Japanese attack aircraft were very survivable in the face of decent (sufficient numbers) of fighters.
I would note that the TBD is sort of a red herring. They only built 129-130 of them (fewer than Skuas) and by Dec 1941 there were only about 100 left due to attrition. They had been out of production for over two years and there were never going to be any more. The replacement by the TBF was part of plan that had started in 1939.
This is an interesting comparison, but your comparisons are made on the basis of isolating specific elements. If you look at IJN vs. FAA, the disparity becomes much more stark.
The biggest hole in your argument is that the Swordfish was not just competing with the B5N, which I agree may only be about 20% - 30% better (that may be enough mind you, but it's really just the start). Lets compare from circa 1941-1943, just focusing on the range.
IJN
Fighters: A5M [range 750 miles], A6M2 [range 1,100 miles], then A6M3 [900, later 1,000 miles]
Seaplane Fighters: F1M* [460 miles], A6M2-N [range 700 miles]
Carrier Dive Bombers: D3A [900 miles]
Carrier Torpedo Bombers: B5N [600 miles], B6N (late 1943) [1,000 miles]
Carrier Scout: D3A, D4Y [900 miles]
Seaplane Scouts: E7*, E8* [550 miles] E13 [1,200 miles]
Flying Boats: H6K [2,900 miles], H8K [3,000 miles]
Land Based Torpedo Bombers: G3M [2,700 miles], G4M [1,700 miles]
FAA / RN
Fighters: Sea Gladiator* [430 miles], Fulmar [780 miles], Sea Hurricane [460 miles], (early) Seafire [500 miles]
Seaplane Fighters: None
Carrier Dive Bombers: Skua [760 miles], Swordfish* [520 miles], Albacore* [710 miles]
Carrier Torpedo Bombers: Swordfish*, Albacore*
Carrier Scout: Fulmar
Seaplane Scouts: Walrus* [range 600 miles], Sea Otter* [range 700 miles]
Flying Boats: Sunderland [1,780 miles]
Land Based Torpedo Bombers: Beaufort [1,600 miles], later Beaufighter / Torbeau [1,450 miles]
* = biplane
Range is estimated based on the maximum, operational range is less than half indicated for land based, about 1/3 for carrier. Range for bombers is given with a bomb load, for scouting they could go further.
Swordfish is the most capable strike plane for the British. It has the demonstrated ability to achieve hits and sink ships, and has the ability early on to carry radar and thus operate in bad weather and at night. But it must compete directly with not just the B5N, but also the very capable D3A which has almost twice the range.
D3A had a very good combat record and was outstanding at achieving hits and sinking ships, while better than you would assume at evading Allied fighters, due to it's considerable agility.
B5N is about 20 or 30% better than the Swordfish in a daylight strike, but also has a proven ability to sink ships.
IJN Recon assets (not just flying boats but also the E13 seaplane) have more than twice the range too. So the Japanese would probably detect the British first (on average, most of the time).
IJN fighters are not only an order of magnitude more effective in combat, they have twice the range. They can escort the Japanese strike planes and are markedly superior in combat to the FAA fighters, with the probable exception of the Seafire that arrives toward the end of this time frame. But even with the Seafire, the IJN could attack in daylight while remaining out of range.
IJN land based bombers have twice the range as British, and I would say with the exception of the Torbeau which came a bit later in the game, they were clearly more effective.
RN's only chance here would be to fight at night (the way IJN did in surface actions during the Pacific War vs the USN) and get pretty lucky. They are clearly at a severe disadvantage in the air war.
A bit like the Buffalo which engaged in two combats in US colors, the total record of the TBD was several raids on Japanese Islands that had no aircraft and the Battle of the Coral Sea and the Battle of Midway. Not a large number of battles to draw conclusions from. given the defective torpedoes and the crappy US tactics (not enough escort fighters for even TBFs) the TBD gets a lot of blame for things that were not it's fault. It was obsolete, there is no question.
I agree TBD wasn't used that much, I was just replying to other posts about it. Having looked into it earlier in the thread, I don't think it was better than the Swordfish, to the contrary. With viable torpedos it still probably would have been a fairly dangerous strike aircraft, but it had an enormous number of flaws.
By the way, I have to double check this but I believe the B5N had a higher dropping hight and drop-speed for torpedoes even early on in the war. This increased for all navies though with the adaption of the wood bits, so I have to review timelines.