Revert^2 "Remove old and duplicated logic in picking up the best artifact."

This reverts commit 3796e88d5d9a6ecc095d32e5ebde11b9f27fef6b.

Reason for revert: Fixed the issue with the original change. The key is
that the oat location must be prioritized over the odex location.

No regression on app startup observed after the change.
Before: 297.61ms https://dashboards.corp.google.com/android-crystalball.dashboards.invocation_viewer?f=ants_invocation_id:eq:I84300010361891674&fb=metric_key:in:perfetto_android_startup-com.google.android.GoogleCamera-hsc-full_startup-dur_ms-mean&fh=eJxdzLEKAjEQhOF32foa03jeG1hfeRwSNgsubvSIkyKI754sdpbzwT_bhzTRQllQlG8PaTQRv6zm57-iHTLsLSaMsVNEXA_hq_fz-TKHU_D4Hgvctn2iXA26_ooFpcq4UZj_0HfvH00onw..
After: 295.42ms https://dashboards.corp.google.com/android-crystalball.dashboards.invocation_viewer?f=ants_invocation_id:eq:I37700010361929468&fb=metric_key:in:perfetto_android_startup-com.google.android.GoogleCamera-hsc-full_startup-dur_ms-mean&fh=eJxdzLEKAjEQhOF32foa03jeG1hfeRwSNgsubvSIkyKI754sdpbzwT_bhzTRQllQlG8PaTQRv6zm57-iHTLsLSaMsVNEXA_hq_fz-TKHU_D4Hgvctn2iXA26_ooFpcq4UZj_0HfvH00onw..

Bug: 377474232
Test: Presubmit
Change-Id: I0c291f195151fdb3b7ea2b63a8015bc8a792a7cd
4 files changed