A "typical" solution is to build one cabinet with a "single width" stile that overhangs the cabinet side. Then build the adjacent cabinet with no stile and the rails "held back" so that the end of the carcase can be "buried" behind the overhanging stile of the other cabinet when the two are butted together. You can use dowels to join or pre-drill pocket screw holes in the rail ends.