Ah, OK. My diesel uses a cartridge.
Back in my oil change days during college, we used to sometimes play the "bigger filter" trick on some vehicles. We had an oil filter book with all the specs, so you'd have to make sure the threads were the same AND the bypass pressure was the same AND the gasket size was the same. Even then, there was a risk with some installations because the filters screwed on horizontal instead of vertical. For a horizontal installation you want an integrated anti-drainback valve to ensure the filter stays relatively full of oil for cold starts. If not, you get a period of time where oil isn't pumping under pressure to the bearings. That, and if the oil drains out of the filter to the pan you can pull the dipstick and end up with customers saying it was over-filled even though it's the correct quantity of oil to fill both the pan and the filter.
My advice to people was to go buy QUALITY oil filters instead of the cheapest orange canister Fram filters we used. Even the next tier up (I think they are "Tough Guard") from Fram is better than their cheapest. My go-to brand at the time was Purolator. After cutting apart a bunch of filters to check inside, Purolator built good filters where Fram were cheap.