At some point, every investor faces the same problem.
You find an industry you like.
You do your research
And then you realize there are two great companies competing for the same spot in your portfolio.
Both look interesting.
Both have strong arguments.
And you are not sure which one deserves your capital.
This happens constantly. Visa or Mastercard. NVIDIA or AMD. Costco or Walmart. The industry thesis is clear but the company choice is not.
Most investors either pick the one they have heard of more, or spend days going back and forth between tabs, trying to hold two companies in their head at the same time.
Neither approach is great.
I use AI to solve this.
One structured prompt, both companies in the same output, side by side.
It does not make the decision for me but it organizes the information in a way that makes the decision much easier.
Here is exactly how I do it.
AI Investing Lab is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.
When you research one company in isolation, it is easy to get convinced.
The numbers look good.
The moat seems strong.
The management sounds smart.
But investing is always a relative decision.
You are not asking whether Visa is a good company.
You are asking whether Visa is a better use of your capital than Mastercard, or an index fund, or something else entirely.
That relative question is hard to answer when you are reading about each company separately at different times, with different framings and different levels of detail.
What you need is a single document that looks at both companies through the exact same lens, asks the same questions about both and puts the answers next to each other.
That is what this prompt does.
Use this when you have two companies in the same industry and want a structured side-by-side comparison.
Replace the company names and industry with whatever you are analyzing.
Act as a senior equity research analyst at a top investment firm.
Create a detailed side-by-side comparison of the following two companies
for an experienced investor making a capital allocation decision.
Company A: [Visa]
Company B: [Mastercard]
Industry: [Payment networks]
The goal is not to pick a winner but to give a clear, structured view
of how these two companies compare across every dimension that matters
for long-term investors.
Structure the analysis with the following sections:
1. Business model comparison
- How does each company generate revenue?
- What are the key differences in their business models?
- Which model is more scalable or resilient?
2. Competitive positioning
- What is each company's moat?
- How do they differ in market share, geography and customer mix?
- Where does each company have a structural advantage?
3. Financial performance (last 3 to 5 years)
Create a comparison table covering:
- Revenue growth
- Net income margin
- Free cash flow margin
- Return on equity
- Return on invested capital
- Debt levels
Highlight the most important differences between the two.
4. Valuation comparison
Create a table covering:
- P/E ratio
- EV/EBITDA
- Price to free cash flow
- Historical valuation ranges
Which company is trading at a premium and is that premium justified?
5. Growth outlook
- What are the key growth drivers for each company?
- Where is each company investing for the future?
- Which company has more room to grow from here?
6. Management and capital allocation
- How does each management team allocate capital?
- What is each company's track record on buybacks, dividends
and acquisitions?
- Which team has demonstrated better execution?
7. Risk comparison
- What are the key risks for each company?
- Where does each company have more exposure?
- Which risks are specific to one company and which are shared?
8. The key question: when would you choose one over the other?
- Under what conditions does Company A make more sense?
- Under what conditions does Company B make more sense?
- Is there a scenario where you would own both?
Format the output with clear tables where useful and keep the
analysis grounded in data. Avoid vague conclusions.I do not run this prompt in isolation.
It is the second step in a short workflow.
First, I use a separate prompt to make sure I understand the industry itself.
What is driving growth, who has pricing power, what are the biggest risks for the sector.
Once I have that foundation, the comparison makes much more sense.
Then I run this prompt and read through the output section by section.
The section I always go to first is section 8. When would you choose one over the other.
That framing forces Claude to be specific about the conditions under which each company makes sense.
It is not just a list of pros and cons. It is a decision framework.
For Visa versus Mastercard, for example, the answer usually comes down to geographic exposure and growth stage.
Mastercard has historically had more international exposure and a slightly more aggressive push into new payment flows.
Visa has more volume and a deeper moat in the US market.
Neither is obviously better. It depends on what you think happens next.
That kind of nuance is hard to see when you are reading about each company separately.
Side by side, it becomes obvious.
The whole process takes about 10 minutes.
Industry context, comparison prompt, a quick read of the output.
By the end I have a clear enough picture to make a decision or know exactly what else I need to research.
Claude will work with the knowledge it has.
For the most current financial data, valuation multiples and recent earnings, you should verify the numbers in the output against a financial data source like a broker terminal, Tikr or the company’s own investor relations page.
Use the prompt for structure and thinking. Use a data source for the numbers.
That combination is where the real leverage is.
The comparison question is one of the most common problems in investing. And it is one of the easiest to solve badly.
Picking the more familiar name is not a process. Reading about each company at different times and trying to hold it all in your head is not a process either.
This prompt gives you a process. Same questions, both companies, side by side. That alone puts you ahead of most investors who are making the same decision on gut feel.
Try it the next time you are stuck between two companies in the same industry.
You will have a clearer view in under half an hour.
Send this to an investor who is still picking stocks by gut feel.
I made comprehensive library of some of most useful Claude investing prompts which you can find here: Claude Investing Prompt Library
The main prompt gives you a strong foundation. But I rarely stop there.
The comparison output is the starting point, not the finish line. Once I have it, three specific questions always come up that the main prompt does not fully answer.

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.