@PythonNut provided a good answer. Another answer is that if you use library Isearch+ (e.g., for other, more important reasons) then you have a user option and commands that let you select the last target occurrence (set the region around it):
isearchp-set-region-flag -– Non-
nil means automatically set the region around the last search target.
isearchp-toggle-set-region, bound to
C-SPC during Isearch -– toggle
set-region-around-search-target -– manually set the region around the last search target.
So if you set the option to non-
nil then Isearch selects the last search hit automatically, by default.
Whether the option is
nil or non-
nil, you can cause Isearch to select that search hit by using
C-SPC before exiting Isearch, if needed.
And if you do not, in one of these ways, cause Isearch to automatically select the last search hit, you can nevertheless select it after exiting Isearch, by using command