Since REST API is comparatively new and offers better performance than admin-ajax.php, developers are now moving away from AJAX to REST API. You can read more about how they differ from the below resources:
admin-ajax.php