Hello kritika
Thank you for your query.
With a Eurail Global Pass, you can use public transport in Switzerland according to the Eurail area of validity card. With the Eurail Global Pass you do not have any discount on other offers such as Swiss Travel Pass in Switzerland.
You can find all Informations on the following link: https://www.eurail.com/
I wish you a pleasant stay in Europe.
Kind regards,
FatimaH