فَإِنْ لَمْ يَجِدْ صَامَ ثَلَاثَةَ أَيَّامٍ فِي الْحَجِّ، وَسَبْعَةً إِذَا رَجَعَ إِلَى أَهْلِهِ
Translation: If the offering is unavailable, he fasts three days during Hajj and seven after returning to his family.
Three plus seven equals ten fasts. The condition “if he cannot find [it]” relates to an unavailable offering or means to obtain it. Fasting is not an arbitrary alternative for someone who can provide the required hady.