In Magento 2, extension attributes extend the default functionality and generally use more complex data types than the custom attributes. The extensibility of default features is what makes Magento 2 stand apart from other CMSs.
Check the solution to add extension attribute to entity in Magento 2 at https://meetanshi.co...y-in-magento-2/.