The vote is only as to who wins so there are only two sides, and Justices vote for one or the other. If CJ Roberts is in the majority, he assigns the writing of the Opinion to one of the five in the majority. If he is not, the most senior Judge in the majority assigns it.

— Shipwreckedcrew (@shipwreckedcrew) May 3, 2022