You need an 1½" flanged tailpiece.
And it's worth noting that the two extra 90°s in the Home Depot image create an S-trap.