Consolidate two adjacent pattern matchings.
Use size estimation to decide optimal build side of BNLJ.