There is only a certain number of gaskets, but if something is a much larger OD then the gasket will be different but say for instance the BT223 is smaller than the B34 but they have the same gasket. If you physically have the extra space then you could actually use the B34.
I stacked them so you can see what I mean.
Always go bigger if you can. Especially with many vehicles having a odd size fill capacity like 8.2 liters or 4.7 liters. (i hate that) now you got extra oil left over. Get a bigger filter and get your moneys worth.