Hi Karthik,
I will try to first look on the "Broadcast Motion 24:24" step, since you have mentioned "TableB" I assume the "stg" table is the tableB you are referring.
"Broadcast Motion 24:24" motion is very good to sub node of the plan which returns few amount of data but for 100k records it does a broadcast motion then its bad, which also means the stats are stale or sample data ( used for analyze ) was a bad sample since here it shows the rows returns by stg is 1 , when you mentioned its 10k to 100K.
You can increase the sample data using "default_statistics_target"
Thanks