“وَ” has several uses in Classical Arabic and has been used in different meanings in both these verses. You cannot draw parallel based on semantic understanding of one verse and apply it on another without giving due regard to the whole sentence structure.
In 62:2, ہُوَ الَّذِیۡ بَعَثَ فِی الۡاُمِّیّٖنَ رَسُوۡلًا مِّنۡہُمۡ یَتۡلُوۡا عَلَیۡہِمۡ اٰیٰتِہٖ وَ یُزَکِّیۡہِمۡ وَ یُعَلِّمُہُمُ الۡکِتٰبَ وَ الۡحِکۡمَۃَ ٭ وَ اِنۡ کَانُوۡا مِنۡ قَبۡلُ لَفِیۡ ضَلٰلٍ مُّبِیۡنٍ
The use of “وَ یُعَلِّمُہُمُ” is stopping that direct parallel to be drawn between these two.
Same verse is being repeated with slight changes in 2:129, 2:151 and 3:164
Look at 2:129:
رَبَّنَا وَ ابۡعَثۡ فِیۡہِمۡ رَسُوۡلًا مِّنۡہُمۡ یَتۡلُوۡا عَلَیۡہِمۡ اٰیٰتِکَ وَ یُعَلِّمُہُمُ الۡکِتٰبَ وَ الۡحِکۡمَۃَ وَ یُزَکِّیۡہِمۡ ؕ اِنَّکَ اَنۡتَ الۡعَزِیۡزُ الۡحَکِیۡمُ
Here “وَ یُزَکِّیۡہِمۡ” has been used with reference to both kitab and Hikmah and hence negating your premise.
Look at 2:151:
کَمَاۤ اَرۡسَلۡنَا فِیۡکُمۡ رَسُوۡلًا مِّنۡکُمۡ یَتۡلُوۡا عَلَیۡکُمۡ اٰیٰتِنَا وَ یُزَکِّیۡکُمۡ وَ یُعَلِّمُکُمُ الۡکِتٰبَ وَ الۡحِکۡمَۃَ وَ یُعَلِّمُکُمۡ مَّا لَمۡ تَکُوۡنُوۡا تَعۡلَمُوۡنَ
Here ” وَ یُعَلِّمُکُمۡ مَّا لَمۡ تَکُوۡنُوۡا تَعۡلَمُوۡنَ” is used with an explanatory “وَ” and the sentence structure also doesn’t allow for a parallel to be drawn in this case either.
Secondly, Quran has gives indications to matters of practicality/actions as being a source of religion and to be followed:
ثُمَّ اَوْحَیْنَآ اِلَیْکَ اَنِ اتَّبِعْ مِلَّۃَ اِبْرٰھِیْمَ حَنِیْفًا، وَ مَا کَانَ مِنَ الْمُشْرِکِیْنَ (16:123)
There are several verses in Quran which talk about sharia of Hajj, Fasting but only where there had been some mistakes or misunderstandings on the part of Quraish to set them straight. Similarly it talks about Zakat and Salah but doesn’t mention anything on how to perform them. Such verses clearly indicate that such ibadah have already been initiated by the Prophet (Sws) and Quran is amending only certain Biddahs or misunderstandings, but is not giving a textbook on how to perform all these ibadah.
For them to be a mere recommendation of Prophet (sws), we need a ‘nas’ for that from the Prophet Himself. Regarding Salah, Fasting, and Zakat, Quran is very clear about their obligatory nature of these ibadah. Regarding other matters of ibadah, we will use the same threshold that we use for Transmission of Quran i.e. ijma and tawatur. If something doesn’t fit the criteria, it will not be accepted as religion.