No, it would take a company that realizes that they already are flying close to the envelope and that they are in deep anti-trust shit already. That is, a company with some common sense among the leadership who can see where the wind is blowing. As it is, Google and Apple have no political or business allies and lots of regulatory actions incoming. They might have done well financially so far, but they aren't in a good position.
Under your scenario (which I realize matches real life) they would still have to think about it. They wouldn't just have an instinctive reaction without any thought.
It would take a company filled with perfect people to avoid having anyone even think about doing the wrong thing. Part of being human is considering the wrong thing and then doing the right thing. (Or not, sometimes.)
Google flies close to the envelope by existing. At their scale, a lot of what is legal and what isn't is undecided (because no other company had been big enough to raise the question).
That, or stupid. And I don't think a stupid company would get to where Google is today.