Just compare the P/E ratio directly, the smaller the better.
Whether the current profit is the main business depends on whether the non-main business is unsustainable.
It is more important to look at growth, that is, what will happen to profitability in the future. This is the hardest.