I prefer using a router because I made a small special use router table for box joints with a trim router permanently attached and with a quarter inch bit also permanently attached. I dialed the whole thing in for quarter inch box joints once and now store it. When I need a box joint, I can plug this thing in and have box joints in a minute. If you have the time and dough to possess a single function table and router. I bought a used trim router off Craigslist.
Box joints on a table saw involve much calibrating the size of the dado with shims and spacers, moving the dado stack up and down to get the right length of the pin, and then calibrating the fixed pin, and then moving the sled with the pin to and fro until a perfect joint is obtained. Then clamp or screw it in place. Then cut your joints. That whole process can take me 45 minutes with endless pieces of scrap to get right.
My router table and router and bit are ready to go within a minute.