the first way is better than the second because the second gives a broken link ??
BUT
the second option doesn’t do the job in the search console.
it does index the page, but it does NOT appear on the site map.
please check the following screenshots.
https://drive.google.com/file/d/1iP8toWbcyu32UrVK-qZeq6Ysfsu1yxk6/view
this shows the search console of the home page (which has only English URL), and google index it and show it on the sitemap.
https://drive.google.com/file/d/1hOKTEd_bEn9Kg4U-2giPSTpVQwgsEBJh/view
here you can see a page with Hebrew URL and the search console does index it, but it also says it was NOT sent to the sitemap.
the screenshots are in Hebrew, but you can see the word SITEMAP at the last sentence.
if you need, I can try change my language to English and screenshot again, or I can share with you access to my search console