Stocks are traded individually, for example, you can buy Amazon shares individually, while you trade forex in pairs, the most important of which are USD\EUR, USD\JPY, GBP\USD, CHF\USD with the aim of clarifying the exchange rate between the two currencies.
Stocks vary in the degree of their liquidity, as liquidity flows more to the desired companies, but the degree of liquidity in the currency markets is much greater, and stocks differ from forex in the degree of volatility, as forex is considered more volatile than stocks and the investor needs more capital to trade shares due to the lack of Leverage is the same as in the currency markets.
And there may be sudden collapses in the stock markets that lead to the collapse of the entire value of the stock, unlike currencies, where the value of a currency cannot collapse completely.
Forex is much bigger and faster than the stock market and there are many variables that can affect the forex market making it more volatile and difficult to trade, currency markets work around the clock for 5 days a week, unlike stock markets which work for specific hours during the day.
Whether you are trading stocks or trading forex, deciding what is best for you depends largely on your goals as a trader, your trading style, and your tolerance for risk, forex trading involves much greater leverage and much less regulation than stock trading which makes it very profitable and risky.