If the diameter of the seal is the same, and the threads are the same, you won’t do any harm. I’ve heard mixed opinions about using larger filters than the factory design, but most opinions have agreed that using a slightly larger filter can have positive effects. I know for older engines, it helps to have more oil in the filter to pull from when starting, and for some things like camshaft variable valve timing, I’ve heard larger filters prolong the life of that too. Regardless, compare the filter to another brand. If you’re at a parts retailer, ask to see another brand (like a Purolator), so that you can compare shapes and sizes.