The replacement filter was a legitimate filter. The ends are just made differently.
The filter removes particulate from the oil, it also can trap some other non particulate contaminants to some extent. You especially don't want particulate matter circulating with oil past the bearings.
Change oil hot and change oil often,