Not sure why you'd short Google. Their business was doing great pre-AI, and will likely do great regardless of what happens to AI. The rumors of their demise when AI hit the scene were clearly greatly exaggerated.
But you don´t get to to that. Would be like "Excluding my business costs, my company profits are the same as my revenue".
You can, and for tax purposes you must. The bean counters hate that you can’t deduct capex.